Pop quiz [memory usage]

Christian Kamm kamm-incasoftware at removethis.de
Sun Jun 7 01:47:47 PDT 2009


bearophile wrote:

>> The following code even crashes LDC during the compilation, I'll ask in
>> the LDC channel:<
> 
> The good ChristianK has already added it:
> http://www.dsource.org/projects/ldc/ticket/320

And thankfully Frits van Bommel has already fixed it: it consumes about 40kb 
of heap memory at runtime now.

This seems to be because we don't use the _d_arrayappend functions at all 
but emit a _d_arraysetlength instead. What's the memory growing behavior of 
that function? Should this be considered a bug?





More information about the Digitalmars-d mailing list