diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2024-08-15 00:02:25 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-08-15 00:02:25 +0200 |
| commit | cd1b42c3e9a2f60c3fae428ef839514b7e97eb0e (patch) | |
| tree | d28ec5fa9601e0e3b9ab046377f790297bda521c /compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp | |
| parent | 9938349c7167fb5abd6381b4441e735504d522b6 (diff) | |
| parent | fce1decc3c6508aa72f590d024e583dd5c0cf04d (diff) | |
| download | rust-cd1b42c3e9a2f60c3fae428ef839514b7e97eb0e.tar.gz rust-cd1b42c3e9a2f60c3fae428ef839514b7e97eb0e.zip | |
Rollup merge of #128946 - orlp:faster-ip-hash, r=joboet
Hash Ipv*Addr as an integer The `Ipv4Addr` and `Ipv6Addr` structs always have a fixed size, but directly derive `Hash`. This causes them to call the bytestring hasher implementation, which adds extra work for most hashers. This PR converts the internal representation to a fixed-width integer before passing to the hasher to prevent this.
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
