Speed up file/directory access in Windows by 3-4x.

This commit is contained in:
Stephen Anthony 2022-10-18 17:21:13 -02:30
parent 7193c40532
commit 7a8845548d
1 changed files with 2 additions and 1 deletions

View File

@ -143,7 +143,8 @@ bool FSNodeWINDOWS::getChildren(AbstractFSList& myList, ListMode mode) const
{
// Files enumeration
WIN32_FIND_DATA desc;
HANDLE handle = FindFirstFile((_path + "*").c_str(), &desc);
HANDLE handle = FindFirstFileEx((_path + "*").c_str(), FindExInfoBasic,
&desc, FindExSearchNameMatch, NULL, FIND_FIRST_EX_LARGE_FETCH);
if (handle == INVALID_HANDLE_VALUE)
return false;