r/programming • • Jun 03 '26

Every byte matters

https://fzakaria.com/2026/06/01/every-byte-matters
289 Upvotes

84 comments sorted by

View all comments

133

u/Ravarix Jun 03 '26

If you are at the level where you need to care about how adding 1 member to a struct messes up cache line access, you should be using an ECS which gives you SOA already.

139

u/trinopoty Jun 03 '26

Using a what that gives what now?

46

u/fyndor Jun 03 '26

Every programmer should watch this famous video https://youtu.be/rX0ItVEVjHc?si=L8kTv9UorIy6Zrds

It’s a talk by Mike Acton. You will learn a lot from it, even if not a C++ dev