main
Collections
Performance
Many years ago I spent a couple of days profiling collections. I
concluded that LinkedList would be the best, general collection to
use.
Recently that has prompted some raised eyebrows here
and there, so I decided to do it again.
I think back in the good, old days that re-sizing of the array was more expensive than it is now.
Image: Quentin Martinez @ Pexels
Console output: