ide: number of files scanned for comparison now limited to 4 000 000

This commit is contained in:
Mirek Fidler 2026-06-27 18:18:54 +02:00
parent fcfa6e3925
commit ec1b5cd3df

View file

@ -21,7 +21,7 @@ void GatherAllFiles(const String& path, Index<String>& filei, VectorMap<String,
if(path.GetCount() == 0)
return;
Sleep(0); // This is supposed to be superlazy
for(FindFile ff(path + "/*.*"); ff && !Thread::IsShutdownThreads() && file.GetCount() < 200000; ff.Next())
for(FindFile ff(path + "/*.*"); ff && !Thread::IsShutdownThreads() && file.GetCount() < 4000000; ff.Next())
if(ff.IsFolder() && *ff.GetName() != '.')
GatherAllFiles(ff.GetPath(), filei, file);
else
@ -70,6 +70,8 @@ void IdeBackgroundThread()
s_allfiles = pick(file);
s_allnests = dir.PickKeys();
}
DDUMP(s_allfiles.GetCount());
ide_bg_scheduler.Wait();
}