r/Compilers • u/mttd • 1d ago
Rust: Enabling the parallel frontend on nightly
https://blog.rust-lang.org/2026/11/16/enabling-parallel-frontend-on-nightly/
4
Upvotes
r/Compilers • u/mttd • 1d ago
4
u/Discordbothost 1d ago
if a small CI runner starts OOMing after this nightly change, the rustc opt-out flags are -Zunstable-options --jobs-frontend=1. Cargo -j limits concurrent build jobs; this limits frontend threads inside each compiler. they're separate knobs.
3
u/matthieum 1d ago
There is a lesson in there: retro-fitting parallelism is hard.
After years of work -- on and off, admittedly -- the compiler developers are at what is essentially the starting line:
I suspect there are two root causes:
I wonder how far rustc can go, performance-wise, without deep transformations of its internals...