-
Notifications
You must be signed in to change notification settings - Fork 148
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
Replace JZlib by JRE Deflater/Inflater #114
Comments
So I have a couple concerns with fully removing the JZlib implementation and replacing it with this alternative:
We could possibly include it in this fork along side the JZlib implementation, since a user could opt into using it manually, although the unclear copyright/license for the code might be problematic with regards to directly distributing it. |
FYI, here is the original JSch-users thread on Sourceforge from whence this JUZ implementation appears to have originated. |
Also, here is a page that describes the differences between Z_PARTIAL_FLUSH & Z_SYNC_FLUSH. |
To be honest, I was not aware of these subtle diffeneces in the zlib implementations. In my naive imagination I considered the JUZ code to be fully compatible, So the only thing I can contribute at this point is to say that we are using the JUZ wrapper in a reallife project where we exchange large amout of data with about 100 different SFTP servers and that we never had any problems so far. |
Version 0.1.65 integrated JZlib to allow the usage of [email protected] & zlib compressions.
I suggest including the code from http://www.jcraft.com/jsch/examples/CompressionJUZ.java instead, which wraps the native java.util.zip.Deflater/Inflater classes. This reduces library size and greatly improves compression performance.
NB: we have been using the above wrapper for many years without any problems.
The text was updated successfully, but these errors were encountered: