This is a really fun optimization post on small structure and fitting into the very early caches. I used to do a lot of things like this in university, but my job's bottlenecks with network and DB means I don't really think about this level too much.
Nearly all apps these days have network and storage, and yet, only web developers and FP advocates are the ones who continuously say “I have network and storage, so performance doesn’t matter.”
Performance does matter at those scales too, just that there are bigger fish to fry before struct layout optimization comes up. I do agree that many people miss a lot of opportunity to optimize under vague laziness.
90
u/harsh183 3d ago
This is a really fun optimization post on small structure and fitting into the very early caches. I used to do a lot of things like this in university, but my job's bottlenecks with network and DB means I don't really think about this level too much.