[Issue 2331] Enum hashes many times slower than normal hashes
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sat Oct 11 07:06:34 PDT 2008
http://d.puremagic.com/issues/show_bug.cgi?id=2331
------- Comment #3 from andrei at metalanguage.com 2008-10-11 09:06 -------
(In reply to comment #1)
> What's happening is that the static this() constructor builds the hash table
> once. The enum version builds it every time it is used, as the enum name is
> replaced with its initializer.
>
I hope this is an explanation of the bug's cause, not a justification that this
is not a bug. :o)
--
More information about the Digitalmars-d-bugs
mailing list