antirez/redis — Issue #153: redis's memory allocator
Author: YANGYongqiang
Created: 2011-10-20 09:10:50+00:00
State: open

Some small structs are allocated from malloc frequently, such as listNode. We can have a memory allocator which requests blocks from malloc and manages blocks. Redis can request listNode from the memory allocator quickly. We can save both time and space by the memory allocator. The memory allocator likes slab allocator in linux kernel on concept.