3 ms·
The MIR is the biggest effort to improve compilation speed, because it's strongly tied in with the effort to make Rust compilation incremental and cacheable in
by kibwen 11y ago
The MIR is the biggest effort to improve compilation speed, because it's strongly tied in with the effort to make Rust compilation incremental and cacheable in a fine-grained way. It should also hopefully be able to perform some simple semantic-aware optimizations prior to handing off to LLVM, to reduce the amount of effort LLVM has to spend optimizing Rust code.
There have still been general compiler improvements this cycle (e.g. https://github.com/rust-lang/rust/pull/27943 https://github.com/rust-lang/rust/pull/27943), but the MIR work is necessary for long-term improvements going forward.