Loading...
Understand why data structures matter through memory systems
Section 1 of 4
Understanding the speed-capacity tradeoff that shapes how we design data structures and optimize algorithm performance.
Ultra-fast storage directly in the processor core
First level cache split into instruction and data caches
Unified cache shared between instruction and data
Last level cache shared across all CPU cores
Primary system memory for active programs and data
Fast non-volatile storage using flash memory
High-capacity mechanical storage with spinning platters
If accessing a CPU register took 1 second, here's how long other memory accesses would take: