-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
enabled a lens config CodeAction is very slow #17950
Comments
I think there's a couple of different things here:
|
I update to
The main slow is to edit and save use |
r-a changes only get into the rustup component once every week or so. The recent optimizations aren't there yet. |
Wait, Is it still the same when |
Yeah, 396 MB without the lens, 650 MB with it enabled. The issues with the lens are that:
|
I don't understand why other lens.references don't cause very slow performance enable all lens (exclude |
Because most of the others we can find without doing too much work. If you're looking at a But if you're searching for Anyway, feel free to download a binary from https://github.com/rust-lang/rust-analyzer/releases/tag/2024-08-19 and see if it's any faster. Although:
|
I downloaded
|
Have the same issue here I did not notice it before updating to latest version |
rust-analyzer version: rust-analyzer 1.82.0-nightly (7c2012d0 2024-07-26)
rustc version: rustc 1.82.0-nightly (7c2012d0e 2024-07-26)
editor or extension: Vim 9.1 coc-rust-analyzer
relevant settings:
code snippet to reproduce
src/main.rs
:reproduce steps:
src/main.rs
, CPU Usage to 400%, Memory Usage to 851 MB=> l0
start CodeAction, is slowThe text was updated successfully, but these errors were encountered: