BLI_memblock: New memory allocator
authorClément Foucault <foucault.clem@gmail.com>
Tue, 7 May 2019 15:52:57 +0000 (17:52 +0200)
committerClément Foucault <foucault.clem@gmail.com>
Wed, 8 May 2019 15:49:27 +0000 (17:49 +0200)
commit45caba37330e623ed1dd8a24aa6698e937325c2b
tree6a2ca72816fafa42849574e41af410be3d2d6891
parentf273141556c5c7a26880d88fe164c1aec901ed53
BLI_memblock: New memory allocator

This is really close to BLI_mempool but uses an array to keep track of the
chunks of memory. There is no tagging necessary to clear the whole
structure so reuse is fast.

Naturally supports iteration but does not support freeing.
source/blender/blenlib/BLI_memblock.h [new file with mode: 0644]
source/blender/blenlib/CMakeLists.txt
source/blender/blenlib/intern/BLI_memblock.c [new file with mode: 0644]