3 ms·
I've played around quite a bit with slab allocation in C to get my interpreters to run faster, and this post inspired me to do a quick benchmark of a design I'v
by codr7 3y ago
I've played around quite a bit with slab allocation in C to get my interpreters to run faster, and this post inspired me to do a quick benchmark of a design I've been iterating.
malloc/free: 207294429ns
slab: 74795526ns
A 74% reduction in runtime is pretty nice.
https://github.com/codr7/libcnabl https://github.com/codr7/libcnabl