Querying CPU load

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

Querying CPU load

Post by w64bit » Thu Sep 10, 2020 10:51 am

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

void
Site Admin
Posts: 5654
Joined: Fri Oct 16, 2009 11:31 pm

Re: Querying CPU load

Post by void » Thu Sep 10, 2020 11:00 am

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: 76
Joined: Wed Jan 09, 2013 9:06 am

Re: Querying CPU load

Post by w64bit » Thu Sep 10, 2020 11:09 am

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