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

Conflicting Information on Minimum Value for -B/Source Buffer Size #263

Open
lbacherle opened this issue May 7, 2021 · 1 comment
Open

Comments

@lbacherle
Copy link

Hey!
Looked through all previous issues but couldn't find anything similar - I am looking into using xdelta for an embedded application, where RAM usage is important.
The 'TuningMemoryBudget' page of the Wiki states a minimum value of 16KB for the -B option/minimum source buffer size. When I try to set 16 KB (using '-B 16384' on the Command Line Interface though, it raises an error, stating '-B: minimum value: 524288 [Bytes]', equaling 512 KB.
Is the TuningMemoryBudget page out of date? Is it still possible to use values smaller than 512KB for the source buffer?

Thanks,
Lisa

@abolibibelot1980
Copy link

abolibibelot1980 commented Nov 15, 2021

Apparently the captain has left the ship long ago and we the poor rats are left trying to survive with the scraps... é_è

I just tested with the old version 3.0t (which I happen to have found about a year ago in a patch archive on a japanese animation website -- that's how I first learned about xdelta and the very concept of delta compression) : it does work with -B 16384. It indeed no longer works with the current presumably stable release 3.0.11 (or 3.1.0). So if it's still important for your project I would suggest that you track down older versions and run tests until you find the best compromise (i.e. the most recent stable version which accepts a low enough value for -B).

Recently I've been suggested to try a similar tool called HDiffPatch, but I haven't tested it yet.

If you happen to have a clue or two about this one I'd be glad to have some useful feedback...

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