seqmalloc
is a naive, leaking malloc(3) implementation.
It ignores free()
and attempts to do as little memory management as
possible while still being malloc(3) compliant and actually useful.
seqmalloc
can be used to:
- speed-up short-lived applications where memory usage does not matter
- as a baseline comparison against other memory allocators
To compile, just download this repository and run:
make
This will produce seqmalloc.a
and seqmalloc.so
.
If successfully compiled, you can link with seqmalloc with your application at compile time with:
-lseqmalloc
or you can dynamically link it with your application by using LD_PRELOAD (if your application was not statically linked with another memory allocator).
LD_PRELOAD=seqmalloc.so ./your_application
License: MIT
Read file COPYING