Innermost Loop Non-Unit Strides

Even when following the correct memory layout order, if the innermost loop iterates with a stride greater than one (e.g., `arr[z][y][x += k]` where `k > 1`), it bypasses contiguous elements within a cache line, wasting fetched data and increasing cache misses.

Sources

Open the full topic