3 ms·
Surely the latter. Most of Rust's optimization comes from LLVM, so clang and others get the same benefit.
by kodablah 9y ago
Surely the latter. Most of Rust's optimization comes from LLVM, so clang and others get the same benefit.
- rbanffy 9y agoIt could also be that Rust exposes more information that can be used to optimize the code it generates to LLVM. Its explicitness makes for a very complete depiction of dependencies and side effects.
- smt88 9y agoThat's interesting and makes sense. I had always thought of LLVM as being lossy when compiling anything more explicit than C++, but that's obviously nonsense since there are front-ends for things like Haskell. Cool!