Learning resources for std.experimental.allocator

xtreak via Digitalmars-d digitalmars-d at puremagic.com
Sat Jan 7 05:38:50 PST 2017


On Friday, 6 January 2017 at 23:39:09 UTC, Ryan wrote:
> On Friday, 6 January 2017 at 03:28:43 UTC, Chris Wright wrote:
>
>>
>> There are some other interesting things you can do with this, 
>> though, regarding tracking how you use memory. Or you could 
>> use it to better benchmark malloc vs GC for your application.
>
> I did this just to see what the difference was and I was 
> surprised by the results. Just using the allocator interface 
> with the GC caused a speed up, then the additional speed up 
> from using malloc/free was very small in comparison.
>
> https://forum.dlang.org/post/rurbbpuqnfepllecqzla@forum.dlang.org

Thanks a lot for sharing this.


More information about the Digitalmars-d mailing list