$ ./guess_the_languageGame Dev
Game Dev · hard · #176

Why is cache locality fast?

  1. Neighbours load together
  2. Branches predict better
  3. Threads contend less
  4. Registers spill later
A cache line brings adjacent data along, so contiguous iteration avoids stalls.
Play Game Dev ▸