Compile-time memory footprint of std.algorithm

Walter Bright via Digitalmars-d digitalmars-d at puremagic.com
Wed Apr 23 01:12:43 PDT 2014


On 4/23/2014 12:20 AM, Kagamin wrote:
> On Wednesday, 23 April 2014 at 06:39:04 UTC, Walter Bright wrote:
>> I made a build of dmd with a collector in it. It destroyed the speed. Took it
>> out.
>
> Is it because of garbage collections? Then allow people configure collection
> threshold, say, collect garbage only when the heap is bigger than 16GB.

It's more than that. I invite you to read the article I wrote on DrDobbs a while 
back about changes to the allocator to improve speed.

tl;dr: allocation is a critical speed issue with dmd. Using the bump-pointer 
method is very fast, and it matters.


More information about the Digitalmars-d mailing list