HACKER Q&A
📣 behnamoh

Why search in Android 10 settings is slower than search on Google?


I just think it doesn't make sense that it takes less time to search the whole internet using Google than search the menus in Android 10 settings.


  👤 Jonnax Accepted Answer ✓
I don't have the time to look through myself, but you can try finding the code for the search in the settings app using the android code search tool:

https://cs.android.com/search?q=Settings%20search

It'll be interesting to see how they implement it that it's so slow.

Perhaps it doesn't have an index and every time you search it needs to enumerate every item in the app?


👤 gitgud
That's something that's always annoyed me! There can't be more than a few hundred items in the settings list to index and search right?

It is so frustrating that it takes sometimes multiple seconds to search this tiny list. It's also amazing that Android is made by Google which prides itself on fast results...

    About 1,000,000 results (0.13 seconds) 
It must be reading the file system or something...