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

working set

The data a piece of code keeps coming back to over a short stretch of time; it runs fast while that fits in the cache.

The working set of a computation over a time window is the set of distinct lines (or pages) it references in that window; performance drops in steps as the working set outgrows each cache level.

Examples

  • A loop over a 1 MiB array has a 1 MiB working set: too big for many L2 caches, small enough for most L3s.

Read the full section →