Dev claims 10x faster Rust builds via per-function codegen caching and fine-grained invalidation

charliermarsh · x · 2026-10-21

Developer jkelleyrtp claims a 10x speedup for Rust builds, sharing early numbers: dissolving crates as the compile unit, aggressively caching codegen per function, and fine-grained span invalidation. Charlie Marsh adds detail on rustd, built on Rust Analyzer—incrementally analyzing Rust via HIR (and MIR for some features), then lowering MIR to Cranlift IR and machine code.

Related event: Astral's agent-patched rustc fork speeds up builds as agentic Rust forks proliferate(12 posts)→

Original post →

More from coding & agent

coding & agent channel →