Pool allocator in C++23 for simulations / game engines - faster than std::pmr

metapool is a header-only, pool-based allocator for high-frequency allocations in simulations, game engines, and other real-time systems.

It uses compile-time layout configuration with preallocated thread-local arenas and implements both std::allocator and std::pmr::memory_resource interfaces.

The repository includes benchmarks against malloc, std::allocator (heap), and std::pmr::unsynchronized_pool_resource (no heap).
The metapool-backed dynamic array mtp::vault reaches up to 1300x faster reserve() than std::vector, and about 3.5x faster than std::pmr::vector.

submitted by /u/iftoin
[link] [comments]