4 ms·
The STL is always the wrong solution for performance. set: the worst. unordered_set: the worst. vector: no small vector optimizations. string: horrible. array:
by rurban 6y ago
The STL is always the wrong solution for performance.
set: the worst. unordered_set: the worst. vector: no small vector optimizations. string: horrible. array: use small_vector instead. deque: slow. list and forward_list: nobody uses that for performance.