Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix #13 use slack deltas for zero sized signatures. #121

Merged
merged 4 commits into from Oct 11, 2017

Conversation

dbaarda
Copy link
Member

@dbaarda dbaarda commented Oct 11, 2017

This uses slack deltas for signatures of empty files. This means it doesn't bother doing rollsum calculations and hashtable lookups against an empty hashtable, instead just emitting literal commands. This makes it heaps more efficient. I added an empty input file for the changes.test to test this case.

I also removed a vestigial tests/dot file (leftover from autoconf?), and updated testcommon.py to include '0' in the tested buffer sizes so that it tests the recommended default buffer sizes, which depend on the block size and type of operation being performed.

Also uses slack deltas for zero sized signatures.
I think this might have once had some meaning under our old autoconf
setup.
Using 0 as your buffer size uses the recommended default which depends
on the block size and task being performed. We should include this in
our tests. This ensures that our tests that excersize various buffer
sizes do.
@dbaarda
Copy link
Member Author

dbaarda commented Oct 11, 2017

This is a tiny fix for a bug. Merging now.

@dbaarda dbaarda merged commit f6c3a2a into librsync:master Oct 11, 2017
@dbaarda dbaarda deleted the fix/zerosig1 branch October 11, 2017 06:00
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.

None yet

1 participant