3 ms·
Can you please expand further on what you mean by this? Are you saying that rustc is compiling a crate before its dependencies?
by ifmpx 6y ago
Can 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)