Skip to content

Run project search in the thread pool #2932

Description

@vkbo

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    refactoringEnhancement: Code refactoring needed

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions