Module 17 · Under the Hood: Memory, Cache, Allocators and the Guarantees
Cache, Equal Work, and One Measured Lab
ProReading
Kenji changes a library report from vector to list because both scans are O(n). The report becomes slower on his machine. Maria asks what the symbol left out. This lesson measures one workload, then connects its observations to memory layout.
Checking what this lesson needs for you…
What is inside Cache, Equal Work, and One Measured Lab
- A cache rewards nearby reads
- Equal results come before timing
- One fair lab, with a narrow claim
- Use the result in a real report