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

param: debounce search with timer to reduce UI lag #12399

Merged
merged 2 commits into from
Feb 8, 2025

Conversation

dakejahl
Copy link
Contributor

@dakejahl dakejahl commented Feb 5, 2025

Fixes #12394

@DonLakeFlyer
Copy link
Contributor

Ah, I thought something like that was already there.

@dakejahl
Copy link
Contributor Author

dakejahl commented Feb 7, 2025

The lag still occurs when the search is invoked but at least now it doesn't occur on every keystroke. I think the issue is the search function is expensive and running it in a connect callback blocks the event loop. The "right" way would be to thread it, but I don't think it matters that much

Copy link
Contributor

@DonLakeFlyer DonLakeFlyer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perfect, thanks Jake

@DonLakeFlyer DonLakeFlyer merged commit 920a02e into master Feb 8, 2025
8 checks passed
@DonLakeFlyer DonLakeFlyer deleted the pr-debounce_param_search branch February 8, 2025 18:10
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.

Param search is laggy
2 participants