How to speed up the Rust compiler in September 2026(nnethercote.github.io)
272 points by trickypr 12 days ago | 163 comments
tl;dr: Over the past two months, the Rust compiler saw a mean 4.57% wall-time reduction across benchmarks, with 555 of 629 measurements improving. Major contributors include an LLVM 23 upgrade, PGO for Clippy (up to 18% faster), rustdoc optimizations, dataflow analysis changes yielding ~30% speedups on cranelift-codegen, and ongoing work to mitigate regressions from the newly-enabled Polonius borrow checker and next-gen trait solver on Nightly. The author is also starting a new role at Hexcat focused on compiler performance.
HN Discussion:
  • ↑Sharing additional personal optimization work or technical contributions complementing the article's progress
  • ↑Appreciation for the measurable gains and corporate funding that enabled them
  • ↓Rust compile times remain too slow for modern AI-agent workflows, pushing users to Go
  • •Curious questions about why the compiler is slow in the first place
  • ↑Pointing to future/related speedup efforts like parallel frontend and TPDE