Cache Line Utilization: Arrays Maximize, Linked Lists Fragment

Arrays efficiently fill CPU cache lines with multiple contiguous elements, ensuring that when one element is accessed, several nearby elements are also loaded, whereas linked list nodes are scattered in memory, leading to inefficient cache line fills and more cache misses.

Sources

Open the full topic