A boost library propsal: Fastest C++ Allocator. See original boost documentation and original code with documentation here.
This library provides the fastest way to manage memory in a C++ application. Yes, that is a bold claim. See the exhaustive results.
There are no source files - to add Monotonic functionality to your project, simply get latest and add the root folder to your include path.
First, build only the requirements:
From Command line
$ b2 address-model=64 link=static threading=multi runtime-link=shared build-dir=build\x86 install --prefix="c:\lib\boost\" filesystem chrono regex threading
$ sudo apt-get intall libdev-boost-filesystem libdev-boost-chrono libdev-boost-regex
Then build the test and performance harnesses:
$ mkdir -p build && cd build && cmake .. && make
Tried and tested on Win7, Win8, Win10, Ubuntu and macOS.
See all comparative results, going back to 2009, here.
These are the latest results as of April 2021.
All numbers are normalised by the time taken for Monotonic, so a number < 0 means faster, a number > 0 means slower by that factor.
*******************************************************
FINAL SUMMARY
*******************************************************
scheme mean std-dev min max
fast 30.2 119 0 1.04e+03
pool 75 6.39e+04 1 2.38e+03
std 3.6 3.04 0.5 11
See the comparison code and the latest results.