associative arrays with manual memory management

Ilya Yaroshenko via Digitalmars-d-announce digitalmars-d-announce at puremagic.com
Wed Aug 26 02:25:58 PDT 2015


On Wednesday, 26 August 2015 at 06:50:26 UTC, Per Nordlöw wrote:
> On Monday, 24 August 2015 at 12:01:52 UTC, Ilya Yaroshenko 
> wrote:
>> http://code.dlang.org/packages/aammm/~master
>
> It would be nice to have a test example for other allocators. 
> I'm especially interested in how much speed we can gain with 
> using a non-shared BlockAllocator in combination with aammm.AA.
>
> Can the whole AA be made `@safe pure nothrow` if the allocator 
> is stored inside the AA itself (non-shared)?


Yes, except constructor. To do not use constructor you can use 
`makeAA` and `disposeAA`.

> I'm especially interested in using this for keys and values 
> only with no indirections.



More information about the Digitalmars-d-announce mailing list