Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Limit thread focus loop by time, not threads.
Resolve pazz#1518. The problem that search_threads_rebuild_limit tries to solve is UI responsiveness, so the relevant thing to limit is time, not loops. Next steps if this approach is accepted: - Must: Deprecate search_threads_rebuild_limit -- Has a process been developed for option deprecation/removal? - Maybe: Add a configuration option for the timeout. Personally I don't think this is necessary because unlike the previous approach this is not relative to the user's processor and inbox size. It's always something that can be added if a need arises. - Maybe: Execute consume_pipe_until in a separate thread, sleep for the timeout, and then kill the thread. This would eliminate the wasteful clock checking every loop but I'm doubtful it's actually more performant.
- Loading branch information