Temporal Locality Boost: Loop Tiling & Data Reuse

In contrast to loop interchange's spatial focus, loop tiling (or blocking) is a key optimization for temporal locality. It partitions loop iteration spaces into smaller 'tiles' that fit entirely within a cache level, maximizing the reuse of data already in cache before it's evicted. This strategy reduces the need to fetch the same data repeatedly from slower main memory.

Sources

Open the full topic