March 03, 2017 Typed D allocator based on jemalloc | ||||
---|---|---|---|---|
| ||||
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 |
March 03, 2017 Re: Typed D allocator based on jemalloc | ||||
---|---|---|---|---|
| ||||
Posted in reply to Basile B. | 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 |
Copyright © 1999-2021 by the D Language Foundation