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

Allow using buzhash chunker and switch to it by default #10

Open
RubenKelevra opened this issue Mar 26, 2023 · 1 comment
Open

Allow using buzhash chunker and switch to it by default #10

RubenKelevra opened this issue Mar 26, 2023 · 1 comment

Comments

@RubenKelevra
Copy link

Currently, the fixed 256 kb chunker is hard-coded.

Switching to the buzhash chunker gives a large advantage if files are modified and data is moved around – like in VM images or tar archives. It also works pretty good on zstd archives when using --rsyncable.

As the data which is moved around can still be matched, a deduplication of different versions is possible.

As that's a prime target for using Git LFS, I think it's worth changing the default here to buzhash.

There are no disadvantages, except a bit CPU time spend on doing the rolling hash.

@sameer
Copy link
Owner

sameer commented Mar 28, 2023

Would you mind making a PR for this?

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

No branches or pull requests

2 participants