rt/aaA.d Line: 553

Steven Schveighoffer schveiguy at gmail.com
Fri Feb 14 23:41:45 UTC 2020


On 2/14/20 6:36 PM, Ferhat Kurtulmuş wrote:
>      İf ((aa.used + 1)* GROW_DEN > aa.dim * GROW_NUM)
>          aa.grow(ti.key);

This call is expensive (it reallocates all the buckets and reinserts all 
the existing data into the new bucket), it should be avoided if in the 
end we will not be incrementing used.

-Steve


More information about the Digitalmars-d-learn mailing list