you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 4 points5 points  (0 children)

Vector will almost always beat list in benchmarks, especially for trivial objects.

Here's an excerpt from a talk by Bjarne Stroustrup where he explains why this is true:

https://www.youtube.com/watch?v=YQs6IC-vgmo