Memory allocation
Imperatorn
johan_forsberg_86 at hotmail.com
Wed Feb 24 06:14:58 UTC 2021
On Tuesday, 23 February 2021 at 19:44:39 UTC, David wrote:
> Not sure if `learn` is the right topic or not to post this..
>
> I've been going through Bob Nystrom's "Crafting Interpreters"
> for a bit of fun and over the weekend put together a toy
> allocator in D - free and gc not yet done. It's single threaded
> and unsurprisingly faster than malloc for small objects up to
> 512 bytes, and about the same for larger objects (simulated
> with a linear distribution of size requests).
>
> [...]
Have you looked at the "experimental" allocator(s) in D?
std.experimental.allocator
More information about the Digitalmars-d-learn
mailing list