Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@victorb
Copy link
Contributor

@victorb victorb commented Oct 27, 2021

Added another arity to deflate which is [b level]. level can be set to any value from https://docs.oracle.com/javase/7/docs/api/constant-values.html#java.util.zip.Deflater.BEST_COMPRESSION, ranging from 0 (BEST_SPEED) to 9 (BEST_COMPRESSION)

License: Apache License 2.0
Signed-off-by: Victor Bjelkholm <[email protected]>
Otherwise it'll hold on to the data and might leak memory if GC is not
called fast enough. See https://docs.oracle.com/javase/7/docs/api/java/util/zip/Deflater.html#end()

License: Apache License 2.0
Signed-off-by: Victor Bjelkholm <[email protected]>
@source-c source-c changed the base branch from master to trunk October 28, 2021 01:42
@source-c
Copy link
Owner

Thank you!

@source-c source-c merged commit 2d73c5b into source-c:trunk Oct 28, 2021
@victorb victorb deleted the zlib/level branch October 28, 2021 11:34
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

Successfully merging this pull request may close these issues.

2 participants