3 ms·
With Rust ownership guarantees, the compiler has the info it needs to perform this kind of optimizations.
by littlestymaar 4y ago
With Rust ownership guarantees, the compiler has the info it needs to perform this kind of optimizations.
- pclmulqdq 4y agoC and C++ are also set up such that the compiler can do that optimization, they just don't. I'm pretty sure the Rust compiler is in the same boat - has the information, but doesn't do the optimization.