Skip to main content

TARGET_CHUNK_SIZE

Constant TARGET_CHUNK_SIZE 

Source
pub const TARGET_CHUNK_SIZE: usize = _; // 65_536usize
Expand description

XET chunking constants, matching deduplication/src/constants.rs.

TARGET_CHUNK_SIZE is 64 KiB, giving an average chunk size of ~64 KiB and a per-xorb target of ~1024 chunks. MINIMUM_CHUNK_DIVISOR = 8 yields a minimum chunk size of 8 KiB; MAXIMUM_CHUNK_MULTIPLIER = 2 yields a maximum of 128 KiB. These match the values pinned at git-xet-v0.2.0.