Re:Arena Allocator Tips and Tricks
by gpderetta on Wednesday September 27, 2023 @11:30AM
(#37676125)
std::deque, although it would be nice to use an implementation where you can control the block size.
[ Parent
| on HN ]
Here’s a simple non-standard allocator for C++ I used a few times in the past: 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.