3 ms·
It seems like many commenters here (the ones who aren’t questioning the methodology) are drawing the lesson that you should use vector rather than set. From th
by iainmerrick 8y ago
It seems like many commenters here (the ones who aren’t questioning the methodology) are drawing the lesson that you should use vector rather than set.
From these charts, isn’t unordered_set clearly the best all-rounder? Which is exactly as I’d expect. Am I missing something?
Sure, a simple vector might be a bit faster for 10 or 100 or 1000 elements, but after a certain point performance is awful.