3 ms·
jemalloc has an alternative API that allows specifying the size of the allocation: sdallocx [1]. [1]: http://www.canonware.com/download/jemalloc/jemalloc-lates
by pcwalton 10y ago
jemalloc has an alternative API that allows specifying the size of the allocation: sdallocx [1].
[1]: http://www.canonware.com/download/jemalloc/jemalloc-latest/doc/jemalloc.html http://www.canonware.com/download/jemalloc/jemalloc-latest/d...
- Someone 10y ago"jemalloc has an alternative API that allows specifying the size of the allocation" I would like to see an API for malloc where you don't need to specify the size of the allocation :-) For those who wonder: it takes additional flags specifying alignment, whether to zero memory, whether to store data in a thread-specific cache, or am arena to use.