Vavuma Code
Status: Beta
Brought to you by:
danv
Vavuma
A memory allocator
Copyright (c) 2011, Daniel van Vugt <danv@users.sf.net>
All rights reserved. See LICENSE.txt for details.
README
Vavuma provides an alternative way to allocate dynamic memory. It is designed
to be:
* very fast with O(1) allocations and frees;
* very efficient in its memory use, using no more memory than Linux ptmalloc;
* very small at approximately 400 lines of C code. That's an order of
magnitude smaller than the alternatives;
* very smart in minimizing fragmentation.
The library can be used directly in new projects by calling the vavuma_
functions declared in vavuma.h, or may be used to override the built-in
malloc/calloc/realloc/free functions at runtime for existing programs.
For example, in Linux you may use vavuma to override the built-in malloc
functions using this command:
env LD_PRELOAD=/path/to/libvavuma.so <program>
Feedback is welcome. Happy allocating.
--
Daniel van Vugt <danv@users.sf.net>