-
-
Notifications
You must be signed in to change notification settings - Fork 256
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
Porting guide from zlib to zlib-ng #736
Comments
We haven't stabilized the new API yet... Around the first release, we should have all the details necessary to make a porting guide... Differences include for example:
|
@mtl1979 is this still true, now that the NEON stuff has been removed?
|
@nmoinvaz It still is true, especially on architectures where unaligned reads and writes are not allowed... Most compilers by default only align to 8-byte boundary. However now that we removed chunkmemset_3 and chunkmemset_6, there is no longer requirement that when the externally allocated buffer ends at 16 byte boundary, it should be padded with extra 16 bytes... It just basically means minimum safe buffer size is 16 bytes and it is more efficient if buffer size is multiple of 16 bytes. |
I am correct in assuming this only holds true for |
gz* functions are just wrappers that use deflate/inflate... |
The guide should also mention the user of the library should:
It will help prevent us from getting issues submitted like #827. |
For users who want to go all-in in switching from zlib to zlib-ng (i.e. don't use zlib-compat), I don't yet see a guide for porting to the new API.
The text was updated successfully, but these errors were encountered: