3 ms·
"compiling rustc itself is now 15%-20% faster. Each commit message in this PR goes over the details; there were some inefficiencies, and now they’ve been cleane
by hacker_9 9y ago
"compiling rustc itself is now 15%-20% faster. Each commit message in this PR goes over the details; there were some inefficiencies, and now they’ve been cleaned up."
Good to hear work is being done to speed up the compiler. It's the only reason I haven't tried Rust out yet, as it often comes up as a problem when others review the language.
- steveklabnik 9y agoWe've been putting in a massive amount of work, and are continuing to do so. Each release gets a little faster. Incremental recompilation is on the way. It's something we care about a lot. To be clear though, this PR is about improving the speed of compiling the compiler, not for using the compiler on other programs.
- kibwen 9y agoWhich isn't to say that the compiler itself (not counting incremental compilation here) isn't getting faster, but the improvements are gradual rather than the dramatic numbers seen in the OP. We have a website for tracking general compiler perf on a few representative programs: http://perf.rust-lang.org/ http://perf.rust-lang.org/ . In the benchmarks there it looks like we've shaved off about half a second from the compilation time on most benchmarks since March, though some have improved by multiple seconds and others have remained the same. In the long-term, we're looking at improvements to typechecking (via Chalk: http://smallcultfollowing.com/babysteps/blog/2017/01/26/lowering-rust-traits-to-logic/ http://smallcultfollowing.com/babysteps/blog/2017/01/26/lowe... ), improvements to linking (via LLD), improvements to debug codegen (via Cretonne: https://internals.rust-lang.org/t/possible-alternative-compiler-backend-cretonne/4275 https://internals.rust-lang.org/t/possible-alternative-compi... ), and of course incremental recompilation.
- shmerl 9y agoNice, I see it has a graph section too.
- infogulch 9y agoWhat's that jump at Apr 22 [1]? [1]: https://github.com/rust-lang/rust/compare/cb4065b9ce4e2bb2c37994762462da76272d6907...252d3da8a6c715ccafcf77d83b826f6fb899cfe5 https://github.com/rust-lang/rust/compare/cb4065b9ce4e2bb2c3...
- Manishearth 9y agohttps://github.com/rust-lang/rust/pull/41469 https://github.com/rust-lang/rust/pull/41469 Whole bunch of perf fixes at once.
- deleted 9y ago[deleted]