Poor memory allocation performance with a lot of threads on 36 core machine

Kagamin via Digitalmars-d digitalmars-d at puremagic.com
Fri Feb 19 04:25:09 PST 2016


On Thursday, 18 February 2016 at 13:55:02 UTC, Witek wrote:
> I will try using std.experimental.allocator, but this doesn't 
> play well with "~", and I would need to manually do 
> expandArray, and array operations, which is a pain. It would be 
> nice to encode allocator used in the type, potentially by 
> wrapping array into custom struct/class.

You can try std.container 
https://dlang.org/phobos/std_container.html - it uses C heap for 
memory management and has overloads for append operators.


More information about the Digitalmars-d mailing list