about summary refs log tree commit diff
path: root/compiler/rustc_codegen_gcc
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2023-04-05 18:35:34 +0000
committerbors <bors@rust-lang.org>2023-04-05 18:35:34 +0000
commit2e486be8d29d198d48bc26bfce5712a4822814f5 (patch)
treeb7ae3dd753c0638c2481f4e3822a9889b7030a09 /compiler/rustc_codegen_gcc
parentb2b676d886ded452125712a304c524c08360f916 (diff)
parent46a3d28e8840f8f7e400e661fc6c544697ad50a7 (diff)
downloadrust-2e486be8d29d198d48bc26bfce5712a4822814f5.tar.gz
rust-2e486be8d29d198d48bc26bfce5712a4822814f5.zip
Auto merge of #107925 - thomcc:sip13, r=cjgillot
Use SipHash-1-3 instead of SipHash-2-4 for StableHasher

Noticed this, and it seems easy and likely a perf win. IIUC we don't need DDOS resistance (just collision) so we ideally would have an even faster hash, but it's hard to beat this SipHash impl here, since it's been so highly tuned for the interface.

It wouldn't surprise me if there's some subtle reason changing this sucks, as it's so obvious it seems likely to have been done. Still, SipHash-1-3 seems to still have the guarantees StableHasher should need (and seemingly more), and is clearly less work. So it's worth a shot.

Not fully tested locally.
Diffstat (limited to 'compiler/rustc_codegen_gcc')
0 files changed, 0 insertions, 0 deletions