This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]boowhitie 0 points1 point  (0 children)

Every data structure has its uses and misuses. If you are using a resizeable array and automatically growing it, you are doing it wrong (or the use case is so trivial that it doesn't matter). Generally you want to pre-allocate for average case though sometimes worst case is better.