3 ms·
std::deque, although it would be nice to use an implementation where you can control the block size.
by gpderetta 3y ago
std::deque, although it would be nice to use an implementation where you can control the block size.
- Const-me 3y agoHere’s a simple non-standard allocator for C++ I used a few times in the past: https://github.com/Const-me/CollectionMicrobench/blob/master/Source/PlexAlloc/Plex.hpp https://github.com/Const-me/CollectionMicrobench/blob/master... The block size is controlled with a template argument, the number must be a compile-time constant.