Spikes in array capacity

BCS none at anon.com
Thu Jul 1 20:22:14 PDT 2010


Hello Ali,

> There is something strange in the array capacity algorithm.
> [...]
> Is that intended?
> 
> Ali
> 

I'm going to take a guess that the gc is (after some point) allocating into 
the smallest hole with "enough" capacity. If you re run the test but with 
something else going on to add some noise, do the spikes move?


void makeNoise()
{
      static byte[][256] data;
      data[rand() % $] = new byte[rand() % 512];
}
-- 
... <IXOYE><





More information about the Digitalmars-d mailing list