Re:The Universal Data Structure
by pmelendez on Tuesday June 30, 2015 @01:55PM
(#9807161)
> Linked lists don't suffer from this problem, but at the cost of 1-2 pointers per item.
Another cost is the cache misses. If you are doing operations in a sequential fashion using an array would have a significant advantage if the number of elements is high. That's another tradeoff to take in consideration.
Another cost is the cache misses. If you are doing operations in a sequential fashion using an array would have a significant advantage if the number of elements is high. That's another tradeoff to take in consideration.