AA Performance in Benchmarks

Martin Nowak via Digitalmars-d digitalmars-d at puremagic.com
Sun Apr 26 09:20:26 PDT 2015


On 04/26/2015 12:58 PM, Daniel Murphy wrote:
> 
> Yes, if we had an AA in phobos.

Yes, I think phobos should get a few more optimized containers.

SparseSet
DenseSet
SparseHash
DenseHash

They should be configurable w.r.t. load factor, equality comparison, and
allocation policy (when std.allocator is available).

http://sparsehash.googlecode.com/svn/trunk/doc/index.html

As the builtin druntime AA will likely always remain a general purpose
hash table we can't do all the possible optimizations.


More information about the Digitalmars-d mailing list