Too many Rust-Analyzer processes at once

I often run into a situation where I open a handful of Rust projects (perhaps by jumping to definition into external dependencies) and I reach a point where there are so many rust-analyzer and rustc processes running that my computer slows to a halt and becomes pretty much unusable. The only thing that I can do then is to pkill rust-analyzer (if the terminal is responsive), which immediately resolves the sluggishness.

I wonder if other people have a similar experience with rust-analyzer and if there are any strategies to mitigate this problem. I am running rust-analyzer within WSL2 with Emacs as the LSP client.

This topic was automatically closed 90 days after the last reply. We invite you to open a new topic if you have further questions or comments.