www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.announce - Typed D allocator based on jemalloc

reply Basile B. <b2.temp gmx.com> writes:
Nothing huge here. The package[0] provides the bindings, 
JEMallocator (like Mallocator) and JEAlignedAllocator (like 
AlignedAllocator). All of them use jeallocator[1], which is 
actually the default implementation of malloc in the FreeBSD 
system.

In a future update I may add another D alloc which would be 
specific to each thread. Another allocator, tcmallocd[2] already 
does this.


[0] http://code.dlang.org/packages/jemallocd
[1] https://github.com/jemalloc/jemalloc
[2] http://code.dlang.org/packages/tcmallocd
Mar 03 2017
parent Moritz Maxeiner <moritz ucworks.org> writes:
On Friday, 3 March 2017 at 12:00:05 UTC, Basile B. wrote:
 Nothing huge here. The package[0] provides the bindings, 
 JEMallocator (like Mallocator) and JEAlignedAllocator (like 
 AlignedAllocator). All of them use jeallocator[1], which is 
 actually the default implementation of malloc in the FreeBSD 
 system.

 In a future update I may add another D alloc which would be 
 specific to each thread. Another allocator, tcmallocd[2] 
 already does this.


 [0] http://code.dlang.org/packages/jemallocd
 [1] https://github.com/jemalloc/jemalloc
 [2] http://code.dlang.org/packages/tcmallocd
Neat. Stupid question, probably, but I don't really know much about jemalloc: Does using the binding yield me significant benefits over just using building blocks the way it's shown under "Sample Assembly" here[1]? [1] https://dlang.org/phobos/std_experimental_allocator_building_blocks.html
Mar 03 2017