Cache Lines: K-NN's Data Locality Secret

Modern CPUs fetch data from memory in fixed-size blocks called cache lines, typically 64 bytes; K-NN algorithms achieve significant speed boosts when frequently accessed data points are packed contiguously within these lines, reducing main memory access.

Sources

Open the full topic