Expand description
Perfect Hashing with fast evaluation.
Re-exports§
pub use compressed_array::CompressedArray;pub use compressed_array::CompressedBuilder;pub use compressed_array::DefaultCompressedArray;
Modules§
Structs§
- Function
- PHast (Perfect Hashing made fast) - Minimal Perfect Hash Function with very fast evaluation and size below 2 bits/key developed by Piotr Beling and Peter Sanders.
- Function2
- PHast (Perfect Hashing made fast) - Minimal Perfect Hash Function with very fast evaluation and size below 2 bits/key developed by Piotr Beling and Peter Sanders.
- Params
- Partial
- Map-or-bump function that assigns different numbers to some keys and
Noneto other. - Perfect
- PHast (Perfect Hashing made fast) - (K-)Perfect (not necessary minimal) Hash Function with very fast evaluation developed by Piotr Beling and Peter Sanders. Experimental.
- Seed
Only SeedChooserto build (1-)perfect functions.- Seed
OnlyK SeedChooserto buildk-perfect functions.kis given as a parameter of this chooser.- Shift
Only SeedChooserto build (1-)perfect functions called PHast+ without wrapping.- Shift
Only Wrapped SeedChooserto build (1-)perfect functions called PHast+ with wrapping.- Shift
Seed Wrapped SeedChooserto build (1-)perfect functions which uses both shifting with wrapping and regular hashing. The parameter points the number of bits of seed used for regular hashing. Increasing it reduces size but slows down construction.- Weights
Traits§
- Bucket
ToActivate Evaluator - Evaluate bucket to be activate.
- Seed
Chooser - Choose best seed in bucket. It affects the trade-off between size and evaluation and construction time.
Functions§
- bits_
per_ seed_ to_ 100_ bucket_ size - Returns bucket size proper for given number of
bits_per_seed.