News for hackers. Stuff that matters.
Re:Ask HN: Do you feel the quality of SWE has gone down? by jfim on Saturday November 23, 2019 @04:36PM (#21616735)
The loops should be inverted. It should be for y, then for x, which accesses the memory in a linear fashion instead of in stride.

This presentation (PDF) explains why: https://www.aristeia.com/TalkNotes/ACCU2011_CPUCaches.pdf

There are no comments on this comment yet.