-
Notifications
You must be signed in to change notification settings - Fork 163
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
New ISA-L backend? #433
Comments
I think this would be a question for @jongiddy. |
Merging To integrate through the I would be interested in seeing a PR with |
Would there be any advantage to using this library over the current zlib-ng backend? Handling the differences in backends is already causing some challenges so adding another C one would result in even more difficulty and we already have a very optimized C backend in zlib-ng. (and also the work in progress zlib-ng rust port if one wants something rust-based and is okay with a fair bit of unsafe code.) The only special feature from what see isa-l has is support for multi-threaded compression though I don't know how much help that is when used via streaming compression apis (there are specialized deflate libraries like libdeflater that can take advantage of use cases where one doesn't need streaming support and can allocate the full output buffer up front.) From some quick testing it seems the "best" compression level in this library compresses much worse than the default levels in zlib-ng, miniz and standard zlib (none of which are exactly equal) as well so comparing the compression speed of isa-l "best" level vs even the "default" level of any of the current backends don't seem to be very representative. (also there may be some slight overhead from flate2 vs using the underlying libraries directly I think) |
Judging by this it seems it might be mainly focused on fast/low compression levels and using the stack rather than dynamically allocating memory? so maybe it's better served by just using it directly if one needs those things instead of getting since it already has a pretty similar API. |
The benchmarks are using level 3 compression (ISA-L supports 0, 1, 3) and zlib-ng. ISA-L is typically 2-3x faster than flate2 with zlib-ng using the same compression level. That was the proposed advantage; if people are good w/ one of these supported levels then it's faster, that's all. ISA-L vs zlib-ng : level 3 gzip
with that said, seems the consensus is not to move forward with adding it as a backend, thank you all for your input. |
Hi there,
I've recently picked up an old project and started a gzip, deflate, zlib implementation using ISA-L here: https://github.com/milesgranger/isal-rs. As promised by isa-l, it has good performance.
I'm curious if there would be interest in adding it as another back-end to flate2? Either by merging it into this repository, a conditional dependency or perhaps it should be just be left unrelated.
Note I know it compiles and tests well on a few 32bit platforms, but seems they're dropping 32bit support:
The text was updated successfully, but these errors were encountered: