M
moswald
I've been searching for a specific article for awhile now. About two
years ago (maybe longer) there was an article in the C/C++ User's
Journal that compared the performances of various stl containers.
Unfortunately, while I remember the topic, I don't remember much else,
so if anyone is inclined to help me find it, they'll have to do some
detective work. I remember it was co-written by two people, one of
which I *think* is Herb Sutter (but I may be way off-base on that).
I'm not positive if it was in the CUJ, either, as it could have been
Dr. Dobbs. I doubt it was in any other magazine, as I remember
reading it at work and at the time we only subscribed to those two.
Specific information about the article: it noted that while list was
better for insertion in the middle, it turns out that vector is almost
always fast enough. And by that I mean fast enough that the article
recommended just always using vector.
I'd like to reread this article, and it's driving me batty that I
can't just google "vector list comparison c++ article" and get
anything useful.
years ago (maybe longer) there was an article in the C/C++ User's
Journal that compared the performances of various stl containers.
Unfortunately, while I remember the topic, I don't remember much else,
so if anyone is inclined to help me find it, they'll have to do some
detective work. I remember it was co-written by two people, one of
which I *think* is Herb Sutter (but I may be way off-base on that).
I'm not positive if it was in the CUJ, either, as it could have been
Dr. Dobbs. I doubt it was in any other magazine, as I remember
reading it at work and at the time we only subscribed to those two.
Specific information about the article: it noted that while list was
better for insertion in the middle, it turns out that vector is almost
always fast enough. And by that I mean fast enough that the article
recommended just always using vector.
I'd like to reread this article, and it's driving me batty that I
can't just google "vector list comparison c++ article" and get
anything useful.