|
|
|
|
|
by mik1998
766 days ago
|
|
> linked lists invariably result in terrible cache locality With a compacting GC (ie most of the relevant ones) lists often provide better memory locality than arrays. They only lose at a large scale due to having +8 bytes of memory, which makes arrays occasionally cheaper for large sequences. |
|
Of course not all container accesses require traversal.