std.allocator ready for some abuse

Andrei Alexandrescu SeeWebsiteForEmail at erdani.org
Thu Nov 7 08:30:02 PST 2013


On 11/7/13 5:30 AM, Namespace wrote:
> Nice! But I suggest two things:
>   1. Add a reset function for reusing the same storage

freeAll().

>   2. Should that:
> https://github.com/andralex/phobos/blob/allocator/std/allocator.d#L2907
> not be replaced with ubyte[size] _store = void; ?

Made the change and pushed, thanks. Unfortunately there's a performance 
bug in the front-end (if at least one field has initialization, all 
fields are initialized by bitblasting .init over the object).

https://d.puremagic.com/issues/show_bug.cgi?id=11331


Andrei



More information about the Digitalmars-d mailing list