Memory pool
wikipedia Memory pool
Memory pools, also called fixed-size blocks allocation, is the use of pools for memory management that allows dynamic memory allocation comparable to malloc or C++'s operator new. As those implementations suffer from fragmentation because of variable block sizes, it is not recommendable to use them in a real time system due to performance. A more efficient solution is preallocating a number of memory blocks with the same size called the memory pool. The application can allocate, access, and free blocks represented by handles at run time.
Implementation
一、这是一种非常重要的optimization方式,在下面的工程、章节中,使用到了它:
1、rapidXML
2、zeux-pugiXML
3、Expert-Jeff-Preshing\Library-cpp11-on-multicore
4、spdlog
github cacay/Memory*Pool*
Boost.Pool
https://www.boost.org/doc/libs/1_75_0/
Memory pool management.
theboostcpplibraries Chapter 4. Boost.Pool
TODO
thinkingeek A very simple memory pool in C++11
stackoverflow What are the usual implementation details behind memory pools?