A very fast cross-platform memory pool mechanism for C++ built using a data-oriented approach (3 to 24 times faster than regular new or delete, depending on operating system & compiler)
Apache License 2.0
214
stars
25
forks
source link
More convenient way to allocate new blocks without affecting performance #6
Modified the CPPShift::Memory::MemoryPoolManager::createMemoryBlock function to retrieve a memory pool structure (MemoryPool*) & a size, the function then assigns the block to the pool block chain for you - before it just created the block and let you do the work of chaining it together to the pool, no affect in performance (even a bit faster but negligible).
Modified the
CPPShift::Memory::MemoryPoolManager::createMemoryBlock
function to retrieve a memory pool structure (MemoryPool*) & a size, the function then assigns the block to the pool block chain for you - before it just created the block and let you do the work of chaining it together to the pool, no affect in performance (even a bit faster but negligible).