basho/bitcask — pull request #96 by evanmcc (2013-07-02 00:23:26+00:00)
Title: move to system malloc to avoid overhead

Allocations via enif_alloc and friends incur double accounting overhead when used in nifs (potentially everywhere?), and the extra 16 bytes per key is especially painful in bitcask. This change is quite simple and at first glance has no performance impact, while using considerably less memory.