Has AA a bad implementation?
elronnd at elronnd.net
Tue Feb 16 09:32:04 UTC 2021
On Friday, 12 February 2021 at 20:59:50 UTC, Steven Schveighoffer
> I don't think there's any current way to explicitly free all
> the items in the AA. Even aa.remove(key) is not going to free
> the item.
Removing all the keys will trigger resizes, freeing the memory.
But doing that individually for each key incurs overhead. Why
not expose such functionality?
More information about the Digitalmars-d