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 dictionary completion performance. #591

Merged
merged 1 commit into from
Jul 22, 2024

Conversation

jonathanslenders
Copy link
Member

This improves the performance for dictionary-like objects where iterating over the keys is fast, but doing a lookup for the values is slow. This change ensures we only do value lookups when really needed.

@jonathanslenders jonathanslenders force-pushed the improve-dictionary-completion-performance branch from d001a37 to a204c76 Compare July 22, 2024 12:32
This improves the performance for dictionary-like objects where iterating over
the keys is fast, but doing a lookup for the values is slow. This change
ensures we only do value lookups when really needed.

The change also caches the meta text so that we don't have to recompute it
during navigation of the completion menu.
@jonathanslenders jonathanslenders force-pushed the improve-dictionary-completion-performance branch from a204c76 to 5d3336e Compare July 22, 2024 12:37
@jonathanslenders jonathanslenders merged commit 3e7f68e into master Jul 22, 2024
10 checks passed
@jonathanslenders jonathanslenders deleted the improve-dictionary-completion-performance branch July 22, 2024 12:39
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.

1 participant