about summary refs log tree commit diff
path: root/src/test/codegen/src-hash-algorithm
diff options
context:
space:
mode:
authorMark Rousskov <mark.simulacrum@gmail.com>2021-10-23 12:11:05 -0400
committerMark Rousskov <mark.simulacrum@gmail.com>2021-10-23 12:11:05 -0400
commit3cd5c95ab0618924d790fcd19f31883e020cc90f (patch)
tree22683d93dbd341c6343f21f417fd58271cfedb7a /src/test/codegen/src-hash-algorithm
parent514b3877956dc594823106b66c164f8cdbc8b3da (diff)
downloadrust-3cd5c95ab0618924d790fcd19f31883e020cc90f.tar.gz
rust-3cd5c95ab0618924d790fcd19f31883e020cc90f.zip
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.

This should hopefully be an improvement for that code.
Diffstat (limited to 'src/test/codegen/src-hash-algorithm')
0 files changed, 0 insertions, 0 deletions