Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: