www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 21006] New: core.internal.hash.bytesHash: in 64-bit builds


          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 puremagic.com
          Reporter: n8sh.secondary 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.

Jul 01 2020