3 ms·
So glad that Rust at 1.38 ditched the Ada model of compiling all dependent modules firstly.
by egberts1 6y ago
So glad that Rust at 1.38 ditched the Ada model of compiling all dependent modules firstly.
- ifmpx 6y agoCan you please expand further on what you mean by this? Are you saying that rustc is compiling a crate before its dependencies?
- pornel 6y agoCompilation in Cargo has been split into metadata pass and code generation pass. Metadata part has interdependencies, but is relatively fast (it's roughly like a C header generation). This allowed more codegen to be done in parallel. To be honest, it was a modest improvement, because compilation has been decently parallelized already (compiler uses incremental builds, parallel codegen, and ThinLTO even within a single crate)