rust/library/core
Matthias Krüger cd1b42c3e9
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.
2024-08-15 00:02:25 +02:00
..
benches Reformat use declarations. 2024-07-29 08:26:52 +10:00
src Rollup merge of #128946 - orlp:faster-ip-hash, r=joboet 2024-08-15 00:02:25 +02:00
tests Rollup merge of #128954 - zachs18:fromresidual-no-default, r=scottmcm 2024-08-14 21:43:08 +08:00
Cargo.toml Cleanup bootstrap check-cfg 2024-06-27 11:30:03 +02:00