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

Remove zero bytes after diff and extra data #18

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

lucasbru
Copy link

jbsdiff seems to write one extra zero byte for every byte in the
target binary to the compressed stream. While these are mostly
compressed away (and not consumed by bspatch or jbsdiff patch),
it will still make the patches slightly smaller and the patching
slightly faster to not write them.

This should make jbsdiff's patches more similar to those generated
by bsdiff. However, even after this change, both library seem
to generate slighly different patch files.

jbsdiff seems to write one extra zero byte for every byte in the
target binary to the compressed stream. While these are mostly
compressed away, it will still make the patches slightly smaller and
the patching slightly faster to not write them.

This should make jbsdiff's patches more similar to those generated
by bsdiff. However, even after this change, both library seem
to generate slighly different patch files.
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