23

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.

you are viewing a single comment's thread
view the rest of the comments
[-] mina86@lemmy.wtf 5 points 21 hours ago* (last edited 21 hours ago)
  • My rule of thumb is at least 2GB of RAM per compilation jobs. Even if you have more cores, the jobs may start swapping or crashing slowing down the build in the end. This may of course depends on the size of the project.
  • Disable LTO during development. Is it only when you’re ready to release your binary.
  • If your editor doesn’t keep up, disable fancy IDE features such as Rust analyser. Run checks periodically the same way you run test.
this post was submitted on 06 Mar 2026
23 points (100.0% liked)

Rust

7832 readers
60 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