Skip to content

Latest commit

 

History

History
21 lines (15 loc) · 541 Bytes

File metadata and controls

21 lines (15 loc) · 541 Bytes

optimized-memory-allocator

Optimized multithread bucket allocator with the goal of outperforming the system allocator.

performance graph

hwx_malloc.c

Baseline circular singly linked free-list allocator.

sys_malloc.c

Wrapper for the system allocator.

opt_malloc.c

Optimized thread-safe bucket allocator.

Supported functions

void*  xmalloc(size_t bytes);
void     xfree(void* ptr);
void* xrealloc(void* prev, size_t bytes);