2 ms·
It's small, but not unnoticeable... depending on the exact size of the workload and the amount of computation per element. In fact, for huge arrays it may be be
by Joker_vD 9mo ago
It's small, but not unnoticeable... depending on the exact size of the workload and the amount of computation per element. In fact, for huge arrays it may be beneficial to have structs packed if that leads to less memory traffic.
[0] https://jordivillar.com/blog/memory-alignment https://jordivillar.com/blog/memory-alignment
[1] https://lemire.me/blog/2012/05/31/data-alignment-for-speed-myth-or-reality/ https://lemire.me/blog/2012/05/31/data-alignment-for-speed-m...
[2] https://lemire.me/blog/2025/07/14/dot-product-on-misaligned-data/ https://lemire.me/blog/2025/07/14/dot-product-on-misaligned-...