[*] Optimize create-dir-tree for FS benchmark

This commit is contained in:
Reece Wilson 2022-03-30 15:17:15 +01:00
parent 790d01a29a
commit 361e8526cf

View File

@ -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;