4 ms·
How is the work to (drastically, I hope) improve compilation speed going?
by lobster_johnson 11y ago
How is the work to (drastically, I hope) improve compilation speed going?
- kibwen 11y agoThe 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.
- mseri 11y agoSome very small and not complete tests on my code show an improvement of ~20% in building time, apparently this is in line with other people's results [1]. However, you can find in the comments on reddit that it is really not uniform. [1]: www.reddit.com/r/rust/comments/3qqdqk/announcing_rust_14/#cwhfnhc