Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Redesign file browser searching #7130

Open
wants to merge 29 commits into
base: master
Choose a base branch
from

Conversation

sakertooth
Copy link
Contributor

Redesigns the file browser searching functionality. In particular, the design was now made to be more extensible to allow other tasks we may want to run asynchronously in the future by introducing a ThreadPool class. All the file search related logic is now encapsulated as its own function object named FileSearch that can be used together with a ThreadPool.

@sakertooth sakertooth marked this pull request as ready for review May 9, 2024 13:02
include/ThreadPool.h Outdated Show resolved Hide resolved
include/ThreadPool.h Show resolved Hide resolved
include/FileSearch.h Outdated Show resolved Hide resolved
src/core/FileSearch.cpp Show resolved Hide resolved
src/core/FileSearch.cpp Outdated Show resolved Hide resolved
The search will get destroyed when replacing it with the new one through the assignment
…ers or not

So the search was broken and missing entries because
the code was not searching through the directories that *did* match the filters. This is also why the search
was oddly fast and completed very quickly.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants