The Rust compiler project has enabled the parallel frontend by default in the nightly release channel to identify remaining stability and performance issues. This move transitions the frontend from sequential execution to a multithreaded architecture, aiming to significantly reduce compilation times for large crate graphs. The team plans to gather field feedback and further optimize sub-components like macro expansion and AST lowering before final stabilization.
Key points
The Rust compiler is transitioning its frontend from sequential execution to a multithreaded model to improve compilation speed.
Benchmarks show significant improvements, with some crates seeing up to 44% faster compilation times using 8 threads.
The parallel frontend is now active by default in the nightly channel to facilitate testing and bug discovery.
Ongoing work aims to parallelize additional stages of the compilation pipeline, such as macro expansion, name resolution, and AST lowering.