Software Unscripted cover image

Speeding up Rust's Compiler

Software Unscripted

00:00

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.

Transcript
Play full episode

The AI-powered Podcast Player

Save insights by tapping your headphones, chat with episodes, discover the best highlights - and more!
App store bannerPlay store banner
Get the app