Skip to content
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

Support compression levels >= 10 and use zstd's internal default level. #730

Merged
merged 1 commit into from
Sep 12, 2023

Conversation

mkasick
Copy link
Contributor

@mkasick mkasick commented Sep 12, 2023

zstd supports regular compression levels 1 through 22. This change enables minizip to accept command-line options of "-10" and above to set levels higher than 10.

This also changes minizip to send the special level of 0 when no command-line level option is specified, which indicates to use zstd's internal default level (currently 3, but potentially subject to change).

zstd also supports negative compression level values to enable "fast" compression. These levels disable Huffman coding to achieve high bandwidth for streaming loads (comparable to LZ4). I didn't attempt to support negative levels here as I'm not sure they're of much value in a non-streaming archive format.

zstd supports regular compression levels 1 through 22.  The special
level 0 indicates to use zstd's internal default (currently level 3).
@nmoinvaz nmoinvaz added the bug Bug label Sep 12, 2023
@nmoinvaz nmoinvaz changed the base branch from master to develop September 12, 2023 17:28
@nmoinvaz nmoinvaz merged commit 2160689 into zlib-ng:develop Sep 12, 2023
28 checks passed
@nmoinvaz
Copy link
Member

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants