6 Things to Know About Whether 32GB RAM Helps Compiles
More RAM only helps if you are running out of memory. Compile time is mostly CPU and I/O bound. Extra RAM does not speed up compilation unless your system is thrashing by swapping memory to disk.
32GB fixes thrashing. When memory runs out, everything grinds to a halt. 32GB stops that.
16GB is usually plenty for typical web development. If you are building a React or Rails app, check your memory usage during a build. Under 80% utilization means more RAM will not change compile times.
32GB makes a real difference when swap is active. If your memory usage is pegged at 90% or higher and swap is active, 32GB will help.
Heavy users who benefit include C++, Rust, and Android developers. Anyone with large codebases, Docker containers, VMs, or monorepos with many services will see gains.
16GB is fine for most web dev. 32GB is for when you know you need it.