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

Speedup suggestions widget #1481

Merged

Conversation

benoit-pierre
Copy link
Member

@benoit-pierre benoit-pierre commented Feb 6, 2022

Summary of changes

Optimize the delegate' sizeHint implementation and cache calls to it.

Closes #1477.

Pull Request Checklist

  • [ ] Changes have tests
  • News fragment added in news.d. See documentation for details

Cache calls to delegate' `sizeHint`.
Optimize delegate' `sizeHint` implementation.
@dnaq
Copy link

dnaq commented Mar 5, 2022

I've been trying out this pull request for a while, and the suggestions widget feels a lot snappier than it used to. I can't say for sure that there isn't a slowdown when the number of widget entries grow, but it's a lot better than it used to be.

@benoit-pierre benoit-pierre force-pushed the speedup_suggestions_widget branch from cdaa926 to a8b6699 Compare March 6, 2022 19:08
@benoit-pierre benoit-pierre merged commit 298c959 into openstenoproject:master Mar 13, 2022
@benoit-pierre benoit-pierre deleted the speedup_suggestions_widget branch March 13, 2022 21:06
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.

Suggestions window causes Plover to lag with large scrollback
3 participants