Skip to main content

compute_chunk_delta

Function compute_chunk_delta 

Source
pub fn compute_chunk_delta(old: &[ChunkRef], new: &[ChunkRef]) -> ChunkDelta
Expand description

Compute the delta between two ordered chunk lists.

Uses content-addressed identity: same BLAKE3 hash = same content = no upload needed. GearChunker content-defined boundaries ensure most chunks survive edits, so diffs are typically sparse.

§Arguments

  • old - Chunk list from the existing stored version (from manifest).
  • new - Chunk list from the new version (freshly chunked).

§Returns

ChunkDelta with added/removed/unchanged counts and efficiency metric.