xor_hasher 0.1.0

Performant hashers for input data that is already highly randomized
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# xor_hasher

`xor_hasher` is a library that provides very simple Hasher objects that XOR input data without using a hash function. They are intended to improve the performance of hash-based data structures when the input keys to be hashed are not user-controlled and are already highly randomized (e.g. SHA256 hashes).

## Features

Features enabled by default:

- `std`: Exports `XorHashMap` and `XorHashSet` type aliases that use this crate's hashers.
- `getrandom`: Enables seeding the hashers from `getrandom` randomness, as well as a `Default` impl for this crate's hashers.
- `rand_core`: Enables seeding the hashers from `rand_core` RNG types.

Features not enabled by default:

- `heapless`: Exports `XorIndexMap` and `XorIndexSet` type aliases that use this crate's hashers.