Would require a lot more allocations. Iterating th...
# stdlib
d
Would require a lot more allocations. Iterating through the LinkedList would be slower, since there are more nodes/references, more possible cache misses due to indirection and more space is required to hold these references.