Skip to content

Add support for zlib default compression level -1#449

Merged
ebiggers merged 1 commit intoebiggers:masterfrom
McTwist:master
Mar 29, 2026
Merged

Add support for zlib default compression level -1#449
ebiggers merged 1 commit intoebiggers:masterfrom
McTwist:master

Conversation

@McTwist
Copy link
Copy Markdown
Contributor

@McTwist McTwist commented Mar 27, 2026

Related to #437.

The changes include support for compression level -1 in libdeflate_alloc_compressor_ex, as well as documentation about it in libdeflate.h, and libdeflate-gzip making use of it.

As stated in the related issue, this adds compatibility with zlib, but also moves the default compression level dependency into the library if the user rather wants the library to make the decision on what level to pick.

Copy link
Copy Markdown
Owner

@ebiggers ebiggers left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is a lot of information in the pull request description that isn't in the actual commit message. Please put it in the commit message --- thanks!

Comment thread lib/deflate_compress.c Outdated
Comment thread libdeflate.h Outdated
Comment thread libdeflate.h Outdated
Update documentation for libdeflate_alloc_compressor to describe
compression level -1.
Update libdeflate-gzip to use compression level -1.
@ebiggers ebiggers merged commit 272f433 into ebiggers:master Mar 29, 2026
47 checks passed
@ebiggers
Copy link
Copy Markdown
Owner

Merged, thanks.

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