logoalt Hacker News

90s_devlast Thursday at 9:08 PM3 repliesview on HN

I can't help but think the borrow checker alone would slow this down by at least 1 or 2 orders of magnitude.


Replies

tomjakubowskilast Thursday at 9:42 PM

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.

steveklabniklast Thursday at 9:15 PM

Your intuition would be wrong: the borrow checker does not take much time at all.

FridgeSeallast Thursday at 9:21 PM

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.