Skip to content
Free public beta until December 4, 2026: every course is open, no card needed. After that, the first chapter of each course stays free and full access is a one-time $39 ($19 for up to 100 founding members chosen for helpful feedback). Your progress is kept. How the beta works

temporal locality

The habit programs have of using the same data again soon, like a loop counter or a running total; a cache keeps recently used data for exactly this reason.

A reference stream has temporal locality when an address accessed now is likely to be accessed again in the near future; caches exploit it by retaining recently used lines.

Examples

  • A loop counter read on every pass stays in L1 for the whole loop.

Read the full section →