News for hackers. Stuff that matters.
Re:Rust in Linux kernel is just a beginning by pornel on Tuesday October 25, 2022 @08:09AM (#33329421)
BTW, people assume it's slow because of the safety checks, but that's not the case. `cargo check` runs just the checks, and is pretty fast.

Majority of the time is spent in LLVM, because rustc throws a ton of code at it to clean up. This is being addressed by MIR optimizations (rustc's built-in optimizer working on higher-level code) to remove costly abstractions before they become a pile of low-level code to eliminate.

There are no comments on this comment yet.