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
| Submitted | Title on HN | Points | Comments |
|---|---|---|---|
| Jan 3, 2014 | How misaligning data can increase performance 12x by reducing cache misses by luu | 165 | 29 |
| Feb 17, 2015 | How Misaligning Data Can Increase Performance 12x (2013) by mattgodbolt | 98 | 16 |
| Jul 19, 2017 | How misaligning data can increase performance by reducing cache misses (2014) by signa11 | 94 | 15 |
Cited in comments
Linked from 6 Hacker News comments by 4 different people, from Dec 2014 to Jul 2024.
Most recent:
- anonymoushn · Jul 25, 2024
- anonymoushn · Dec 29, 2023
- anonymoushn · Nov 27, 2022
- metaphor · Dec 8, 2016
- acconsta · Aug 25, 2015
- jeffreyrogers · Dec 3, 2014