mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-06-30 06:12:22 -06:00
ide: number of files scanned for comparison now limited to 4 000 000
This commit is contained in:
parent
fcfa6e3925
commit
ec1b5cd3df
1 changed files with 3 additions and 1 deletions
|
|
@ -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();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue