Skip to content

zlib with level=1 available? #32

Closed Answered by tsolomko
bastie asked this question in Q&A
Discussion options

You must be logged in to vote

Sorry for the long response time.

Zlib (or actually Deflate) compression levels are not standardized, see e.g. Zlib Specification. This is mostly because compression, compared to decompression, is more of an art. You can employ many different techniques and heuristics to get different tradeoffs between compression ratio and time. This is even true for "simpler" algorithms such Deflate/Zlib, as you can choose how you search for subdata matches, do you use static Huffman trees or dynamic ones, how do you construct the dynamic trees, etc.

As such, compression levels remain an implementation detail and different implementations may define the exact specifics of them in different ways. For exa…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@bastie
Comment options

Answer selected by bastie
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants