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

Improve performance for TreeSearch #1

Merged
merged 5 commits into from
Sep 29, 2024

Conversation

monxa
Copy link
Owner

@monxa monxa commented Sep 29, 2024

Addresses limbonaut#229 -> Searches do a whole tree reconstruction for now: Noticeable lag.

  • Make search_mask updates not reconstruct the Tree via TaskTree
  • Optimize callable_cache management
  • Selectively clear filter only when previously applied
  • Use Tree::queue_redraw when possible instead of reassigning the draw callback.

Unverified

This user has not yet uploaded their public signing key.
Experimental, hence this is on a different branch.

This commit vastly improves performance by not updating the tree
for search mask changes.

Relates to: limbonaut#229

Unverified

This user has not yet uploaded their public signing key.

Unverified

This user has not yet uploaded their public signing key.
- Carefully manage callable_cache
- Only clear filter when previously filtered
- Reintroduce sorting for ordered_tree_items

This commit addresses performance issues in TreeSearch and fixes
a critical bug where ordered_tree_items was not being sorted.
The bug was introduced during a merge with the main feature branch.
@monxa monxa self-assigned this Sep 29, 2024
@monxa monxa added the enhancement New feature or request label Sep 29, 2024

Unverified

This user has not yet uploaded their public signing key.
@monxa monxa merged commit e68e023 into tasktree-search Sep 29, 2024
@monxa monxa deleted the tasktree-search-performance branch September 29, 2024 19:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant