Druntime AA interface could be enhanced a bit
Sean Kelly
sean at invisibleduck.org
Fri Apr 9 10:49:39 PDT 2010
Michael Rynn Wrote:
>
> In playing around trying to understand and make a better AA, I have
> updated again the dsource/projects/aa/trunk/druntime/aaA.d, this time to
> be a single linked list version.
>
> In the template versions of various implementations, and in Java HashMap,
> I noticed that its nice to be able to specify the initial capacity, and a
> load ratio (nodes to table length), and see how performance varies.
>
> It would be nice to have an _aaInit function, where these things are
> specified.
>
> And corresponding .init property.
>
> And a .capacity (read and write) property.
> And a .loadRatio (double) property.
> How about a .statistics property?
Please submit a ticket labeled [enhancement] with as much detail as you can provide. It's a good idea, but will get lost if it isn't in BugZilla.
More information about the Digitalmars-d
mailing list