[Issue 21006] New: core.internal.hash.bytesHash: in 64-bit builds use a 64-bit-oriented algorithm
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Thu Jul 2 00:03:33 UTC 2020
https://issues.dlang.org/show_bug.cgi?id=21006
Issue ID: 21006
Summary: core.internal.hash.bytesHash: in 64-bit builds use a
64-bit-oriented algorithm
Product: D
Version: D2
Hardware: x86_64
OS: All
Status: NEW
Severity: enhancement
Priority: P1
Component: druntime
Assignee: nobody at puremagic.com
Reporter: n8sh.secondary at hotmail.com
Currently all builds use 32-bit MurmurHash3 for core.internal.hash.bytesHash.
On 64-bit builds this means the high 32 bits of the initial seed are discarded
(which is relevant for chained uses of hashOf) and only the low 32 bits of the
output are populated. In addition to fixing those problems speed improvement is
also possible.
--
More information about the Digitalmars-d-bugs
mailing list