News for hackers. Stuff that matters.
Re:Rust 2021 Roadmap by Privacy846 on Friday December 18, 2020 @03:36PM (#25471618)
> This question inappropriately assumes that the Rust compiling design and performance are fixed to what is today, and in particular, that they are entirely inherent to the language.

Either that, or: it asks exactly that question rather than assumes that slow compilation is intrinsic to memory safety etc. But yes, there might be an implicit premise about some part of the Rust design contributing to slow compilation times.

Re:Rust 2021 Roadmap by pizza234 on Saturday December 19, 2020 @07:45AM (#25477081)
Well, I've just profiled the incremental compilation of a 4.8k lines Rust project (using the `self-profile` option); top three offenders:

- LLVM_module_codegen_emit_obj: 47% of the time - LLVM_passes: 16% - codegen_module: 15%

Sample of Rust-specific passes:

- MIR_borrow_checking: 0.2% - resolve_lifetimes: 0.0%

The two passes above are arbitrarily picked, but anything other than the top three takes cumulatively 22% of the time.

Based on this, the Rust IR generation and LLVM are the bottleneck. I'd be interested in the opinion of somebody knowledgeable, since there may be non-obvious mistakes in the above reasoning.

Re:Rust 2021 Roadmap by steveklabnik on Saturday December 19, 2020 @10:57AM (#25478183)
This is a pretty common shape of the measurement, yes.
Re:Rust 2021 Roadmap by vijaybritto on Saturday December 19, 2020 @12:10PM (#25478916)
Hello Steve, I hope you're well and baking more breads for Christmas!
Re:Rust 2021 Roadmap by steveklabnik on Saturday December 19, 2020 @01:18PM (#25479661)
Thanks! I am working on two loaves right now, haha!