3 ms·
> Rust is as fast as C because llvm includes all the optimizations used to make C programs fast, and rust gets to reuse all of those optimizations. I mean, th
by astrange 4y ago
> Rust is as fast as C because llvm includes all the optimizations used to make C programs fast, and rust gets to reuse all of those optimizations.
I mean, that's not the reason Rust is as fast as C. It's because Rust semantically doesn't include mandatory slower things.
The compiler it uses is an implementation detail.
- josephg 4y agoWell, it’s both.