Re:Show HN: High-speed UTF-8 validation in Rust
by celeritascelery on Wednesday April 21, 2021 @02:46PM
(#26893839)
ahh, so it does come back to cache line alignment. Reading aligned data doesn't give any benefit in and of itself[1]. At least not on modern hardware. I guess the performance improvement would make sense since SIMD instructions are sized to be a multiple of the cache line size.
[1] https://lemire.me/blog/2012/05/31/data-alignment-for-speed-m...