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

Cache imenu results for cursor movements #288

Closed
minad opened this issue Oct 9, 2018 · 2 comments
Closed

Cache imenu results for cursor movements #288

minad opened this issue Oct 9, 2018 · 2 comments

Comments

@minad
Copy link
Contributor

minad commented Oct 9, 2018

If the cursor is moved the imenu is queried many times, which can lead to quite some load for example on lsp servers. The imenu must only be reloaded when real editing happens.

See parts of the discussion at #283

@Alexander-Miller
Copy link
Owner

Added basic caching. An unmodified buffer will now reuse the results of the last imenu call.

@minad
Copy link
Contributor Author

minad commented Oct 20, 2018

👍 thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants