Has AA a bad implementation?
frame86 at live.com
Fri Feb 12 21:56:54 UTC 2021
On Friday, 12 February 2021 at 20:59:50 UTC, Steven Schveighoffer
> There's a misunderstanding here. The bucket array is not the
> data itself, its just basically a pointer and the hash. The
> Bucket struct is here:
No, I'm talking about those Buckets.
> If you want the bucket memory itself to be freed on the next GC
> cycle, you can just set the AA to null. But the bucket memory
> shouldn't be that cumbersome.
Maybe not, but it comes in mind for daemon applications. 10000
items are consuming 600 ~ 800K each array.
Yes, nulling helps to get rid of the Bucket list. Also destroy().
But that's not so intentional than using clear() - this is my
More information about the Digitalmars-d