News for hackers. Stuff that matters.
Re:"Why is the Rust compiler so slow?" by 90s_dev on Thursday June 26, 2025 @05:08PM (#44391384)
I can't help but think the borrow checker alone would slow this down by at least 1 or 2 orders of magnitude.
Re:"Why is the Rust compiler so slow?" by steveklabnik on Thursday June 26, 2025 @05:15PM (#44391473)
Your intuition would be wrong: the borrow checker does not take much time at all.
Re:"Why is the Rust compiler so slow?" by tomjakubowski on Thursday June 26, 2025 @05:42PM (#44391760)
The borrow checker is really not that expensive. On a random example, a release build of the regex crate, I see <1% of time spent in borrowck. >80% is spent in codegen and LLVM.
Re:"Why is the Rust compiler so slow?" by FridgeSeal on Thursday June 26, 2025 @05:21PM (#44391548)
Again, as this been often repeated, and backed up with data, the borrow-checker is a tiny fraction of a Rust apps build time, the biggest chunk of time is spent in LLVM.