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
[–] -3 points 6 months ago (2 children)

This will work if you use emacs or vim. The problem is helix.

  • source
  • hideshow 4 child comments
  • [–] [S] 10 points 6 months ago (2 children)

    Are you sure? I have tried using vim and it was pretty much the same.

    I have also confirmed the cause using task manager to be rust analyzer.

  • source
  • parent
  • hideshow 4 child comments