3 ms·
You're right. https://godbolt.org/z/cfr8MEG6j https://godbolt.org/z/cfr8MEG6j https://godbolt.org/z/7crr4n66Y https://godbolt.org/z/7crr4n66Y I suppose I'm
by junon 4y ago
You're right.
https://godbolt.org/z/cfr8MEG6j https://godbolt.org/z/cfr8MEG6j
https://godbolt.org/z/7crr4n66Y https://godbolt.org/z/7crr4n66Y
I suppose I'm used to C/C++ compilers not going as far down the optimization rabbit hole as Rust seems to, where they often miss more complex optimizations like this in sufficiently advanced wrapper types etc.