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.

  • FizzyOrange@programming.dev
    link
    fedilink
    arrow-up
    0
    ·
    18 days ago

    8 GB is a really small amount. Even phones have had that much RAM for several years. The average desktop I built in 2012 had 16 GB of RAM.

    Plenty of modern computers only come with a small amount of RAM, because most people only need a small amount, but 8 GB is still a small amount.