
Speeding up Rust's Compiler
Software Unscripted
Is the Russ Compiler Using Mold?
Rust uses a default system linker called mold. If you go from the default linker on Linux to LLD, you get a big improvement in compile times. The order in which the cargo chooses to invoke the compiler on those can make quite a big difference. Some crates take a long time to compile and some take a short time. And if you've got one that takes a longTime to compile, you want to be overlapping other compilations as much as possible with that. Cargo has this relatively recently added flag. I think it's dash dash timings that you can just run cargo dash dash timing build.
00:00
Transcript
Play full episode
Remember Everything You Learn from Podcasts
Save insights instantly, chat with episodes, and build lasting knowledge - all powered by AI.