Fast GC allocation of many small objects
Per Nordlöw
per.nordlow at gmail.com
Fri Mar 30 20:46:43 UTC 2018
On Friday, 30 March 2018 at 20:38:35 UTC, rikki cattermole wrote:
> Use a custom allocator (that could be backed by the GC) using
> std.experimental.allocators :)
https://dlang.org/phobos/std_experimental_allocator.html
is massive.
I guess I should allocate my nodes using
auto node = theAllocator.make!StrNode("alpha");
Could someone please give a working example of a GC-backed
`theAllocator` suitable for my allocation pattern?
More information about the Digitalmars-d-learn
mailing list