Parse tree node allocator

Per Nordlöw via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Fri Sep 1 02:08:26 PDT 2017


On Thursday, 31 August 2017 at 15:55:26 UTC, Stefan Koch wrote:
> On Thursday, 31 August 2017 at 15:43:05 UTC, Per Nordlöw wrote:
>> Which allocator is best suited for allocating tree nodes (all 
>> of equal size around 40-60 bytes in size) in one shot and then 
>> delete them all in one go? My use case is parse trees.
>
> Region Allocator.

A region over `Mallocator` or a paged allocator to avoid overhead 
in calling `malloc`?


More information about the Digitalmars-d-learn mailing list