Contiguous vs. Linked Lists: Up to 100x Speed Advantage

Iterating over contiguous arrays can achieve a performance speedup of 10x to 100x compared to linked lists for large datasets, primarily due to arrays' superior spatial locality, which minimizes cache misses and optimizes CPU prefetching.

Sources

Open the full topic