Rust analyzer and compilation are very slow. My system is heating up, running out of ram and disk space. I have 8 GB ram.

I use helix editor.

edit: thank you for all your suggestions. I am breaking up the project into smaller crates to see if that makes a difference.

I got the biggest improvements from zram and sccache. With zram my memory usage stays at 90% instead of fully running out when rust-analyzer starts.

you are viewing a single comment's thread
view the rest of the comments
[–] 2 points 8 months ago

The project is about 1000 dependencies and 10k loc

To me that's a very big project. Have you tried using fewer compilation threads? Maybe you need to sacrifice some speed to make it fit in memory and disk?

  • source
  • parent