polardbxengine/extra/duktape/duktape-2.3.0/examples/alloc-hybrid
dengwendi 1d6524707e INIT 2023-11-15 15:04:10 +08:00
..
README.rst INIT 2023-11-15 15:04:10 +08:00
duk_alloc_hybrid.c INIT 2023-11-15 15:04:10 +08:00
duk_alloc_hybrid.h INIT 2023-11-15 15:04:10 +08:00

README.rst

=====================
Hybrid pool allocator
=====================

Example allocator that tries to satisfy memory allocations for small sizes
from a set of fixed pools, but always falls back to malloc/realloc/free if
a larger size is requested or the pools have been exhausted.

This may be useful to reduce memory churn when the platform allocator does
not handle allocations for a lot of small memory areas efficiently.