[Solved] Querying CPU load

General discussion related to "Everything".
Post Reply
w64bit
Posts: 229
Joined: Wed Jan 09, 2013 9:06 am

[Solved] Querying CPU load

Post by w64bit »

When I am searching with 992 Lite for *\*FOLDER*\*file* in 500k files + 100k folders the querying is taking 12-14 s and the CPU utilization is close to 100% for 8 cores CPU + 2 SSD.
This don't bother me but it's good to know if the CPU load it's normal for such a task (or it's a program issue).
Thank you
Last edited by w64bit on Tue Mar 16, 2021 11:32 am, edited 1 time in total.
void
Developer
Posts: 15096
Joined: Fri Oct 16, 2009 11:31 pm

Re: Querying CPU load

Post by void »

The high CPU usage is normal for a recursive wildcard query. The more *s the slower the search will be..

Please try the following searches:

path:FOLDER file *\*FOLDER*\*file*

The FOLDER file search will eliminate most unwanted results so the wildcard search does not have to be performed on every single filename.

You don't need to search for *file* again, since file on it's own does the same thing.
The following search would be faster again:

path:FOLDER file *\*FOLDER*\*

You could omit the first \ since folder would most likely not match a root:

path:FOLDER file *FOLDER*\*

You could also omit the path:FOLDER search as the file search should reduce the number of results, leaving the following search:

file *FOLDER*\*

Regex might be slightly faster than *\*FOLDER*\*file*, and would also give more control over what * matches:

regex:\\[^\\]*FOLDER[^\\]*\\[^\\]*file[^\\]*$
w64bit
Posts: 229
Joined: Wed Jan 09, 2013 9:06 am

Re: Querying CPU load

Post by w64bit »

Thank you very much for the clarification. It helps me a lot.
Anyway, I found with this occasion that Everything has an excellent multicore utilization on such a small exe footprint.
I propose a new Nobel Prize. For Programming :)
Post Reply