File::constructFileWithoutCheck()


#1

Hi,

I need to create FileInputStreams as fast as possible, and I would like to skip the overhead of parseAbsolutePath() called in the File() constructor.
Is it possible to add this function to the File class :

[code]static File constructFileWithoutCheck(const String& fullpath);

File File::constructFileWithoutCheck(const String& fullpath)
{
return File(fullpath, 0);
}[/code]


#2

The parseAbsolutePath method is pretty minimal, I’d find it very hard to be convinced that it could possibly cause any kind of performance issue, especially compared to opening and reading from a file…


#3