The status of parallel rustc
summary
Rustc adds a parallel front end based on rayon that swaps serial types for thread-safe versions (Lrc→Arc, RefCell→Mutex/RwLock), shards global hash tables, and exposes threading via -Z threads; the single-threaded parallel build now costs about 2% overhead (was ~6%), while multi-threaded runs show varied gains, often 10–20% faster on small thread counts. Plan: land in nightly first, then make multi-threading the default later; benchmarks use ~40 programs and instruction counts.
AI-written summary · about
chapters (8)
- 0:00Start
- 0:42Parallel execution
- 0:53cargo
- 2:27back-end
- 5:33Shipping strategy
- 5:461. Parallel front-end, single-threaded by default
- 6:50Performance tracking
- 9:09Conclusion
related talks
59mParallel Programming in Rust: Techniques for Blazing Speed
25mRayon: Data Parallelism for Fun and Profit
53mRust: Reach Further!
23m"The Current State and Future of Rust Compiler Performance"
22mUsing Rust in Free-Threaded vs Regular Python 3.13
56mWhen to Choose Rust
40mRust’s approach of getting things right
16mRust, For Science!
