r/cpp • u/meetingcpp Meeting C++ | C++ Evangelist • Sep 24 '26
About alignment, struct layout and the cache...
https://meetingcpp.com/blog/items/About-alignment--struct-layout-and-the-cache---.html
36
Upvotes
View all comments
Show parent comment
4
u/Fabulous-Meaning-966 Sep 25 '26
Yes, there's a great explanation of the data dependency issue with linked lists here (and a cool trick for hiding cache miss latency when traversing lists):
https://www.scylladb.com/2026/01/06/the-taming-of-collection-scans/