summaryrefslogtreecommitdiff
path: root/libs/pbd/reallocpool.cc
AgeCommit message (Collapse)Author
2016-07-19tweak realloc-pool realloc behavior.Robin Gareus
* ignore provided old-size from lua, use internal segment size. * fix behavior on OOM (leave memory untouched)
2016-03-19fix optimized buildRobin Gareus
2016-02-22time-bound memory-poolRobin Gareus
O(1) realloc() for use with Lua. A standard malloc/free/realloc API is exposed for testing and other potential use-cases. The current configuration it's performs well for lua-metatables (regular calls to realloc() with varying tiny chunks ~1-50 bytes) For the use-case at hand it outperforms TLSF.