Thread overview | |||||
---|---|---|---|---|---|
|
August 31, 2017 Parse tree node allocator | ||||
---|---|---|---|---|
| ||||
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. |
August 31, 2017 Re: Parse tree node allocator | ||||
---|---|---|---|---|
| ||||
Posted in reply to Per Nordlöw | 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.
|
September 01, 2017 Re: Parse tree node allocator | ||||
---|---|---|---|---|
| ||||
Posted in reply to Stefan Koch | 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`?
|
Copyright © 1999-2021 by the D Language Foundation