Why is searching in Windows so slow compared to Linux?

1

When using find in Linux, results are returned within seconds/milliseconds. On the other hand, Windows explorer sometimes takes minutes when searching for a file.

I am aware of the fact that Windows only indexes certain directories, but not of the reasons behind that.

Robert Hönig

Posted 2016-12-17T22:15:46.553

Reputation: 131

Could the people downvoting please explain their reasons for this? I do not see any issues in this question, but would be glad to learn. – Robert Hönig – 2016-12-17T23:33:48.747

Answers

1

I would state, that the Windows Search will try to index also the content of the files, while searching, so being relatively slow. If you want a similar fast search result, you might also want to search via command line in Windows via the old DOS command find.

By the way: on Linux you might want to use locate for a pre-indexed file name search, or recollindex for a search over pre-indexed file contents.

Jaleks

Posted 2016-12-17T22:15:46.553

Reputation: 209

so if I search in windows for "rabbits", the results will also include files containing the string "rabbits"? – Robert Hönig – 2016-12-17T23:35:11.560

@RobertHönig yes, every file type that has a file indexer registered will be searched (Word documents, Excel spreadsheets, txt files, music metadata, contacts, PDFs, image metadata, etc). – GiantTree – 2016-12-18T00:37:11.977

0

Also, Linux and Windows use different filesystem For Linux, it is some sort of ext (3 or 4) https://en.wikipedia.org/wiki/Ext3
In Windows, however, default filesystem for years is NTFS:
https://en.wikipedia.org/wiki/NTFS

However, Jaleks is right that this might be more about the indexing service itself and it's structure. Personally, I use program called Everything to look for a files(name-based searches, no content) on a NTFS drives, and after a 30 seconds indexing on a nearly-full 500 GB HDD I'm able to get to any file as soon as i type it's name. So NTFS can do, too ;)

M'cin

Posted 2016-12-17T22:15:46.553

Reputation: 31