Cache Aware Binary Search
Arrange and search sorted data with explicit knowledge of cache lines or memory blocks.
5 notes
Arrange and search sorted data with explicit knowledge of cache lines or memory blocks.
Place array elements at memory addresses that satisfy hardware and type alignment requirements.
Map logical array positions to physical storage positions.
Understand how arrays are stored in memory and how layout affects performance.
Store values indexed by two or more dimensions using a linear memory layout.