[*] Optimize create-dir-tree for FS benchmark
This commit is contained in:
parent
790d01a29a
commit
361e8526cf
@ -73,6 +73,16 @@ namespace Aurora::IO::FS
|
||||
{
|
||||
try
|
||||
{
|
||||
// This gives us a significant performance boost
|
||||
AuString path;
|
||||
if (isFile && GetDirectoryFromPath(path, cpath))
|
||||
{
|
||||
if (DirExists(path))
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
for (int i = 0; i < cpath.size(); i++)
|
||||
{
|
||||
bool end = i == cpath.size() - 1;
|
||||
|
Loading…
Reference in New Issue
Block a user