Closed
Bug 735088
Opened 13 years ago
Closed 10 months ago
Stop using crappy hash functions in the JS engine
Categories
(Core :: JavaScript Engine, defect)
Core
JavaScript Engine
Tracking
()
RESOLVED
INACTIVE
People
(Reporter: justin.lebar+bug, Unassigned)
References
Details
Split off from bug 729940. There, we stopped using crappy hash functions in Gecko. But we didn't land for JS because of some small perf regressions which I'm still working out.
Reporter | ||
Comment 1•13 years ago
|
||
Watch the Windows Dromaeo results below to see if simplifying the hash function from goldenratio * (rol(hash, 5) ^ val) to 33 * (hash ^ val) improves perf.
https://tbpl.mozilla.org/?tree=Try&rev=284fb758b848
![]() |
||
Comment 2•13 years ago
|
||
On the subject, it would be nice to remove JS_ROTATE_LEFT32 to remove the temptation in the future...
Reporter | ||
Comment 3•13 years ago
|
||
> Watch the Windows Dromaeo results below to see if simplifying the hash function from goldenratio *
> (rol(hash, 5) ^ val) to 33 * (hash ^ val) improves perf.
I'm kicking more runs of Dromaeo, but it appears to be right beneath the cusp of statistically equal performance.
I really wonder why JS should be so sensitive to the hash function used here...
Assignee | ||
Updated•11 years ago
|
Assignee: general → nobody
Updated•2 years ago
|
Severity: normal → S3
Updated•10 months ago
|
Status: NEW → RESOLVED
Closed: 10 months ago
Resolution: --- → INACTIVE
You need to log in
before you can comment on or make changes to this bug.
Description
•