www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 18921] New: make core.internal.hash cater to memberwise hash


          Issue ID: 18921
           Summary: make core.internal.hash cater to memberwise hash
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P1
         Component: druntime
          Assignee: nobody puremagic.com
          Reporter: n8sh.secondary hotmail.com

arrays, speed up the hashing of individual scalars.

Right now, for a `struct` where each field is `uint`, memberwise chained
hashing has a 250% speed penalty with LDC2 and a 350% speed penalty on DMD2
compared to treating the struct as an array of bytes. This seems fairly
constant regardless of the size of the struct.

May 30 2018