Improve search performance by a huge margin
This is just a proposed change. I was looking for the problem in BUG: 424199 when I realized that it was taking about 50 seconds to just do the search (which is unbearable). A quick hotspot profile shows that most of the time was being spent due to:
With this change the search time is ~10 seconds now.
The file used for search is on: https://www.sogou.com/labs/resource/w.php with the name: SogouLabDic.dic
Search phrase: " "
My CPU: Core i5 4300U with 8 GB Ram
- The UI is not as frequently updated so there is no smooth counter update.