4 ms·
Rust and/or LLVM will make this optimization as well. The easiest example I can find of this is in the buffered IO code [1], but there have been others [1]: ht
by shepmaster 7y ago
Rust and/or LLVM will make this optimization as well. The easiest example I can find of this is in the buffered IO code [1], but there have been others
[1]: https://github.com/rust-lang/rust/blob/f0b58fcf03391a91f74224fe38a696d5a5b789d9/src/libstd/io/buffered.rs#L277-L278 https://github.com/rust-lang/rust/blob/f0b58fcf03391a91f7422...