this post was submitted on 06 Mar 2026
25 points (100.0% liked)

Rust

7860 readers
33 users here now

Welcome to the Rust community! This is a place to discuss about the Rust programming language.

Wormhole

!performance@programming.dev

Credits

  • The icon is a modified version of the official rust logo (changing the colors to a gradient and black background)

founded 2 years ago
MODERATORS
 

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
[–] FizzyOrange@programming.dev 0 points 1 week ago (1 children)

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.

[–] TehPers@beehaw.org 1 points 1 week ago (1 children)

"Small amount" is relative here. Not everybody needs to play Battlefield 6.

For just programming, 8GB is way more than enough. Even my old work laptop had only 8GB and the issues didn't show up until I had multiple Office products + Teams + a browser open, not from any of my dev software.

[–] robinm@fosstodon.org 2 points 1 week ago

@TehPers @FizzyOrange "old laptop" RAM usage scale heavily with core count. Modern CPU have much more core, and thus RAM is much more useful for compiling nowadays