Rust 1.78: Performance Impact of the 128-bit Memory Alignment Fix
(codspeed.io)
from tedu to programming on 17 May 2024 17:11
https://azorius.net/g/programming/p/7yTlKnFJ3tln523K3d-Rust-178-Performance-Impact-of-the-128bit-Memory
from tedu to programming on 17 May 2024 17:11
https://azorius.net/g/programming/p/7yTlKnFJ3tln523K3d-Rust-178-Performance-Impact-of-the-128bit-Memory
The Rust 1.78.0 version was released on May 2, 2024. The release announcement mentions that the bundled LLVM version is upgraded to 18, completing the announced u128/i128 change for x86 architectures. It is mentioned that if your code uses 128-bit integers, you may notice runtime performance improvement.
Having a memory size greater than its alignment can lead to cases where the value is stored at an address right at the edge of a memory cache line (which is usually 64 bytes), which will cause the value to be stored on two cache lines instead of one.
threaded - newest