Skip to main content

Module bloom

Module bloom 

Source
Expand description

bloom API (re-exported at this path).

Structs§

BloomFilterInvalid
Invalid or missing Bloom filter data (zero-length filter, etc.).
BloomFilterSettings
Settings stored in the BDAT chunk header and used for hashing.

Enums§

BloomBuildOutcome
Result of building a Bloom filter payload for one commit.

Constants§

BLOOMDATA_HEADER_LEN
BLOOMDATA_HEADER_LEN constant.

Functions§

bloom_filter_contains
Returns Ok(true) if all bits for every key are set, Ok(false) if definitely not, Err(BloomFilterInvalid) if the filter has zero length (missing / invalid).
bloom_key_hashes
Hash values for one path string (same length as settings.num_hashes).
bloom_keyvec_for_path
Build keys for path and every directory prefix (Git bloom_keyvec_new).
build_bloom_filter_data
Compute on-disk filter bytes for a commit’s changed paths.
collect_changed_paths_for_bloom
Every distinct path and parent directory for diff paths (Git pathmap order doesn’t matter).