Project search reads and regex-matches every document on the GUI thread, pumping the event loop per item, and with auto-search enabled this rides the search-box debounce. Move it to a QRunnable (settings + search text in, plain result tuples streamed out via queued signal, job-id check to drop superseded results). Removes both processEvents pumps and the _blocked flag. Route the textChanged single-document re-search through the same worker.
Part of #2923.
Project search reads and regex-matches every document on the GUI thread, pumping the event loop per item, and with auto-search enabled this rides the search-box debounce. Move it to a
QRunnable(settings + search text in, plain result tuples streamed out via queued signal, job-id check to drop superseded results). Removes bothprocessEventspumps and the_blockedflag. Route thetextChangedsingle-document re-search through the same worker.Part of #2923.