rust-lang / rustc-stable-hash

A stable hashing algorithm used by rustc: cross-platform, deterministic, not secure
Apache License 2.0
5 stars 3 forks source link

Optimize SipHash by reordering instructions in compress #7

Closed mat-1 closed 3 months ago

mat-1 commented 3 months ago

This change optimizes the compress macro by changing the order of instructions so the CPU can parallelize it better. Part of https://github.com/rust-lang/rust/pull/127226, see that PR for more info.