https://issues.dlang.org/show_bug.cgi?id=2504: reserve for associative arrays
Era Scarecrow via Digitalmars-d
digitalmars-d at puremagic.com
Tue Nov 1 22:03:22 PDT 2016
On Wednesday, 2 November 2016 at 03:36:42 UTC, Andrei
Alexandrescu wrote:
> Cons:
>
> * Built-in hashtables are a convenience facility more than a
> high-performance one, so providing an efficiency-oriented
> primitive seems a bit odd.
I don't see why it would be odd.
If I know my code is going to be working with 10,000,000 values,
then telling/hinting so it could prepare appropriately up front
rather than taking hits later seems useful. It's not like it
couldn't work without it right?
I'd hope for a few other features, like the AA could be
pre-initialized and ready to go, for fixed/immutable lists.
More information about the Digitalmars-d
mailing list