Dan Luu personal blog

How misaligning data can increase performance 12x by reducing cache misses

Here's the graph of a toy benchmark 1 of page-aligned vs. mis-aligned accesses; it shows a ratio of performance between the two at different working set sizes. If this benchmark seems contrived, it actually comes from a real world example of the disastrous performance implications of using nice power of 2 alignment…
Points
165
HN comments
60
Submissions
3
Cited by
4 commenters

Systems & PerformanceSoftware Engineering2014

On Hacker News

SubmittedTitle on HNPointsComments
Jan 3, 2014How misaligning data can increase performance 12x by reducing cache misses by luu16529
Feb 17, 2015How Misaligning Data Can Increase Performance 12x (2013) by mattgodbolt9816
Jul 19, 2017How misaligning data can increase performance by reducing cache misses (2014) by signa119415

Cited in comments

Linked from 6 Hacker News comments by 4 different people, from Dec 2014 to Jul 2024.

Most recent:

Search every comment that links here →

More from Dan Luu

All 102 posts →

Related posts from the same era