logoalt Hacker News

azinman2yesterday at 5:39 PM2 repliesview on HN

Why would you want to disable an index in favor of an O(N) search?


Replies

1718627440yesterday at 5:44 PM

That might be true in theory, but in practice a find oneliner is still the fastest way to find things. It shouldn't be the case, but a fulltext search is faster than using the OS index, because the former is stable and improved for decades by low level developers, while the later is continuously recreated by people who like Javascript in the UI libraries of the OS.

mixmastamykyesterday at 8:31 PM

Because the index generator is broken and constantly using up CPU and memory to index things you'll never look for? I mean, it shouldn't be that way, but unfortunately is.

I personally disable these kinds of search indexes in favor of find and ag/ripgrep etc. They are very fast on a modern system with SSD.

Not available to regular folks I guess, but use prewritten aliases to simplify.