[Issue 13410] Performance problem with associative array byKey/byValue
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Fri Sep 26 14:38:15 PDT 2014
https://issues.dlang.org/show_bug.cgi?id=13410
--- Comment #18 from Ketmar Dark <ketmar at ketmar.no-ip.org> ---
(In reply to Steven Schveighoffer from comment #17)
> Hm... I think you can just use 0. When caching is off, you need to start
> looking at bucket 0 anyway.
please read _aaDelX() code too. trick is harmless, neat looking and yeah,
confuses some readers who aren't read the whole code (and so they will not
'fix' the thing they not fully understand ;-).
to keep the long story short: i like this trick and will not remove it. but it
doesn't mean that anyone else can't took my code and rewrite it in any other
way. ;-)
--
More information about the Digitalmars-d-bugs
mailing list