News for hackers. Stuff that matters.
Re:How to speed up the Rust compiler some more in 2020 by edflsafoiewq on Wednesday August 05, 2020 @08:36AM (#24060112)
My impression was cranelift doesn't improve compile time by enough to lift rustc out of the "slow" category, and borrowck isn't usually the expensive part of compilation.
Re:How to speed up the Rust compiler some more in 2020 by MaxBarraclough on Wednesday August 05, 2020 @08:50AM (#24060224)
If not the borrower-checker or the code-generator, what's the slow part of Rust compilation? The front-end?
Re:How to speed up the Rust compiler some more in 2020 by trait on Wednesday August 05, 2020 @09:27AM (#24060509)
The slowest part is code-gen indeed, that's why cargo-check[0] is really fast. [0]https://doc.rust-lang.org/cargo/commands/cargo-check.html
Re:How to speed up the Rust compiler some more in 2020 by zozbot234 on Wednesday August 05, 2020 @10:15AM (#24060981)
Typically the bottleneck is monomorphizing generic code. Also evaluating macros (if they're being used).