Comment by Joker_vD
3 hours 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
[1] https://lemire.me/blog/2012/05/31/data-alignment-for-speed-m...
[2] https://lemire.me/blog/2025/07/14/dot-product-on-misaligned-...
No comments yet
Contribute on Hacker News ↗