eerimoq / detools

Binary delta encoding tools.
Other
157 stars 16 forks source link

Modify Heatshrink Compression Parameters #6

Closed laukik-hase closed 2 years ago

laukik-hase commented 2 years ago

Thank you for this amazing project! I ported it for ESP32 (here) and it worked like a charm!

Is there a way to modify the Heatshrink compression parameters (window size, look ahead buffer) from the command-line? Something like - detools create_patch -c heatshrink --wbit 8 --lookahead 7...

eerimoq commented 2 years ago

Hi!

It's not possible today, but feel free to implement it and submit a PR and I'll have a look at it. Hopefully it's easy to implement.

Erik

laukik-hase commented 2 years ago

Ok, thanks for your response! I am closing this issue, as this is a feature request.

eerimoq commented 2 years ago

I implemented it. Part of version 0.49.0!

I did not implement support for it in the C code, only in the Python code.

❯ detools create_patch -c heatshrink --heatshrink-window-sz2 10 --heatshrink-lookahead-sz2 5 tests/files/foo/old tests/files/foo/new patch
Successfully created 'patch' in 0 seconds!