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
2
u/pdp10gumby Sep 27 '26
Well sure, I"m not sure what your point is. As with every datastructure you have to choose based on optimal performance in a typical working set. I don't use linked lists often (few should) but of course in some cases they are the right choice, and if your use case reduces memory move upon updates that can be good or bad.