logoalt Hacker News

About memory pressure, lock contention, and Data-oriented Design

37 pointsby vinhnxlast Sunday at 11:59 AM1 commentview on HN

Comments

pastescreenshottoday at 4:55 AM

The useful distinction here is not just AoS vs SoA, it is moving expensive work off the hot path. The biggest win in the article seems to be caching the sort/filter inputs so lock-taking and cache misses happen on updates, not during every comparison. That is a very transferable lesson even if you never go full data-oriented design.