Worst 3 Data Access Patterns for Cache Efficiency

Random memory access causes the most cache misses by failing to leverage spatial locality, as data is fetched from scattered locations. Column-major access of row-major stored arrays (or vice-versa) also severely degrades spatial locality by requiring large strides across memory, fetching mostly unused data. Similarly, traversing non-contiguous linked lists results in poor cache performance due to scattered node storage.

Sources

Open the full topic