Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Search in Explorer is slow #94

Open
batzen opened this issue Jul 31, 2021 · 9 comments
Open

Search in Explorer is slow #94

batzen opened this issue Jul 31, 2021 · 9 comments
Assignees

Comments

@batzen
Copy link

batzen commented Jul 31, 2021

Windows Build Number

10.0.19043.0

Processor Architecture

AMD64

Memory

32GB

Storage Type, free / capacity

NVME SSD, 410 GB, 930 GB

Relevant apps installed

Windows 10

Traces collected via Feedback Hub

None.

Isssue description

Searching in Explorer is really slow.
Even searching in folder structures with relatively few files takes very long.

Steps to reproduce

For example:
Cloning the dotnet wpf repo and searching for "runtests.cmd" pegs one CPU core for 3 minutes and 27 seconds (then Explorer.exe crashes on my system).
The folder contains 4599 folders and 30142 files.

For comparison (on my machine):
Enumerating all files, without any caching/indexing, with .NET 5 takes about 40 milliseconds (i can share my code if you don't believe it).
So the time difference is at around a factor of 5,175 (((3 * 60) + 27) * 1000 / 40).
Even searching inside every file for the given text only takes around 1.5 seconds (while skipping binary files) and around 6.5 seconds when including binary files (in can also share my code for this task if you are interested).

That's so shockingly much wasted electricity/battery life.

Expected Behavior

Searching in Explorer, given that it even uses an index, should be instant instead of taking minutes.

Actual Behavior

Searching in Explorer takes minutes.

@ghost ghost added the Needs-Triage 🔍 label Jul 31, 2021
@AvriMSFT
Copy link
Contributor

@batzen thanks for reporting your issue! I've reached out to the necessary folks who work on Search and Explorer here. I'll be sure to ping this thread with any updates.

@AvriMSFT AvriMSFT self-assigned this Sep 28, 2021
@batzen
Copy link
Author

batzen commented Oct 31, 2021

Just leaving this here:
tools_vs_explorer_full_an

@Eli-Black-Work
Copy link

@batzen By the way, I recently upgraded my home computer to Windows 11, and it feels like the Windows Search feature in Windows 11 may have had some upgrades. Obviously it would be nice if searching in Windows 10 was performant, too, but I wonder if Microsoft will be mostly focusing on improving performance in Windows 11, going forward.

@AvriMSFT
Copy link
Contributor

hey @batzen wanted to check back in on this thread here. Have you upgraded to Win11? If so, would love to hear about your experience with Search and File Explorer there. If not, are you still hitting this issue in Win 10? Thanks!

@batzen
Copy link
Author

batzen commented Mar 12, 2022

@AvriMSFT I am on Win11 (22000.556).
Performance of explorer search did improve, but it's still unacceptable slow and it didn't crash at the end of the search.

I searched for "spy*.exe" again.
It took 5 Minutes to find 1 of 2 matches, even though both matches are in the same folder, it took another 2 1/2 Minutes to find the second one.
So the total search time was 7 1/2 Minutes.
That's quite an improvement, compared to my last try, but it's still 150 times slower than my own tool.

My own tool, after some optimizations, only needs ~3 seconds to search through the whole "c:" partition.
I can't stress this enough:
My own tool does NOT use an index and does NOT do any caching. It just iterates over all files and directories in parallel.

@AvriMSFT
Copy link
Contributor

Thanks @batzen! I've sent this off to the search team. They're aware of the issue and are investigating. Will report back with any updates as they come in 🙂.

@no-j
Copy link

no-j commented Jun 22, 2022

Explorer search is STILL UNBEARABLE in Windows 10, unbelievably busted. I've been using 3rd party software only for searching files for a few years already, and every time that I make the mistake of trying to search something in File Explorer I immediately regret it. The fact that it is not fixed after YEARS this is happening is mind boggling for me... it's really like Microsoft have no respect for any of its customer's time, and in an era we have probably the fastest hard drives and memory in human history.

This is inexcusable, unprofessional, and makes me really, really sad.

@batzen
Copy link
Author

batzen commented Apr 1, 2023

@AvriMSFT Any news here?

@batzen
Copy link
Author

batzen commented Mar 17, 2024

@AvriMSFT Any news here? It's almost a year without.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants