How improper loop structure can cause cache misses and balloon runtime [C]
stackoverflow.com