Skip to content

SC-3: delta-transfer algorithm (rolling checksum + block matching) - #4

Merged
iampryce merged 1 commit into
mainfrom
sc-3-delta-algorithm
Jul 31, 2026
Merged

iampryce merged 1 commit into
mainfrom
sc-3-delta-algorithm

Conversation

@iampryce

Copy link
Copy Markdown
Contributor

Rolling weak checksum + MD5 strong checksum, block signature generation, and delta generation/application with weak-checksum collisions disambiguated by strong checksum. Signature bundles block size with checksums so generation/application can't drift out of sync.

Self-review found a dead assignment and, more importantly, that the collision-disambiguation path had no test exercising it — added a hand-constructed genuine Adler-32 collision to prove it actually works in both directions.

58 tests, including a 10-case round-trip suite. Clean on Windows and Linux.

Rolling weak checksum + MD5 strong checksum, block signature generation,
and delta generation/application with weak-checksum collisions
disambiguated by strong checksum. Signature bundles block size with
checksums so generation/application can't drift out of sync.

Self-review found a dead assignment and, more importantly, that the
collision-disambiguation path had no test exercising it — added a
hand-constructed genuine Adler-32 collision to prove it actually works
in both directions.

58 tests, including a 10-case round-trip suite. Clean on Windows and
Linux.
@iampryce
iampryce requested a review from jasonmiller-cc July 31, 2026 17:10
@iampryce
iampryce merged commit 40f7fd8 into main Jul 31, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant