diff options
author | bors <bors@rust-lang.org> | 2021-10-24 06:29:41 +0000 |
---|---|---|
committer | bors <bors@rust-lang.org> | 2021-10-24 06:29:41 +0000 |
commit | bdcb52851231dc14bc6a7915dc62528cae7b8137 (patch) | |
tree | 1c693f074dd54f52f4d0e8f0d9f42ca61642c198 /tests/codegen/src-hash-algorithm/src-hash-algorithm-sha1.rs | |
parent | a99c9d6518690023914abdbaad572634f857c4c2 (diff) | |
parent | 3cd5c95ab0618924d790fcd19f31883e020cc90f (diff) | |
download | rust-bdcb52851231dc14bc6a7915dc62528cae7b8137.tar.gz |
Auto merge of #90208 - Mark-Simulacrum:hash-bytes-fast, r=oli-obk
Specialize HashStable for [u8] slices
Particularly for ctfe-stress-4, the hashing of byte slices as part of the
MIR Allocation is quite hot. Previously, we were falling back on byte-by-byte
copying of the slice into the SipHash buffer (64 bytes long) before hashing a 64
byte chunk, and then doing that again and again; now we use the dedicated byte-slice write.
Diffstat (limited to 'tests/codegen/src-hash-algorithm/src-hash-algorithm-sha1.rs')
0 files changed, 0 insertions, 0 deletions