4 ms·
I wrote a lot of the Rust compiler. Slice base and length is almost always cached if it matters for performance.
by pcwalton 8y ago
I wrote a lot of the Rust compiler. Slice base and length is almost always cached if it matters for performance.
- Const-me 8y agoOK, but wasting 2 general purpose registers on that, out of just 15 available, also matters for performance.