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:
item->setCheckState(0, Qt::Checked);
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
Downsides:
- The UI is not as frequently updated so there is no smooth counter update.