Signals and Slots
Walter Bright
newshound at digitalmars.com
Thu Nov 2 13:24:39 PST 2006
Frits van Bommel wrote:
> Walter Bright wrote:
>> No, that is as intended. It's using a power of 2 allocation method.
>> Also, the sizeof thing is taken care of by the call to calloc/realloc.
>
> Then it's massively over-allocating. Note that it performs a call to
> calloc/realloc *every single time* the function is called. It (more
> than) doubles the length and sets the last element to the new slots.
Looks like I screwed that up!
More information about the Digitalmars-d
mailing list