[Issue 2922] Egregiously bad hashing performance with strings
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Fri Oct 23 08:59:23 PDT 2009
http://d.puremagic.com/issues/show_bug.cgi?id=2922
David Simcha <dsimcha at yahoo.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |REOPENED
Resolution|FIXED |
Severity|normal |major
--- Comment #3 from David Simcha <dsimcha at yahoo.com> 2009-10-23 08:59:22 PDT ---
I just realized that this was only fixed for string, i.e. immutable(char)[].
It still happens on const(char)[]. To demonstrate this, change the line
hash_t hash = typeid(string).getHash(cast(void*) &myRandString);
to
hash_t hash = typeid(const(char)[]).getHash(cast(void*) &myRandString);
in my test program.
When the typeid is changed to const(char)[], the results are exactly the same
as they were for string before this bug was fixed.
--
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