[Issue 2331] Enum hashes many times slower than normal hashes

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Sep 22 10:52:19 PDT 2010


http://d.puremagic.com/issues/show_bug.cgi?id=2331


nfxjfg at gmail.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |nfxjfg at gmail.com


--- Comment #6 from nfxjfg at gmail.com 2010-09-22 10:51:38 PDT ---
(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.

That's quite hilarious. There are now half a dozen of bugs related to dmd being
stupid with static data construction. E.g. see bug 4397, bug 2526, bug 2356,
bug 4881. They possibly are all caused by the same underlying issue. Walter,
don't you think your users are finally annoyed enough so that you could look
into fixing it?

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list