Re:Fast Rust Builds
by PoignardAzur on Friday September 10, 2021 @08:10PM
(#28488257)
I wouldn't hold my breath too much.
Something I noticed since I've started timing builds is that codegen and linking usually takes less than 30% of the build time for an incremental build.
So in practice, switching to Cranelift and lld/mold will shave maybe 2 seconds off a 10-seconds build. Better, but still flow breaking.
If we want Go-like compile times, we're going to need some more fundamental improvements to the compiler.
Ooh, got a link to any of those alternate backends?
There are some alternate codegen backends that aim to fix this by compiling less-optimized debug builds more quickly.