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

bpo-43612: Add wbits parameter to zlib.compress #25011

Closed
wants to merge 10 commits into from

Conversation

rhpvorderman
Copy link
Contributor

@rhpvorderman rhpvorderman commented Mar 24, 2021

This allows users to compress raw deflate blocks without zlib headers and trailers in one go. Without needing to use zlib.compressobj. Also this allows users to do zlib.compress(data, 1, wbits=31) which is much faster than gzip.compress(data, 1).

https://bugs.python.org/issue43612

@github-actions
Copy link

This PR is stale because it has been open for 30 days with no activity.

@github-actions github-actions bot added the stale Stale PR or inactive for long period of time. label Apr 24, 2021
Doc/library/zlib.rst Outdated Show resolved Hide resolved
Doc/library/zlib.rst Outdated Show resolved Hide resolved
Doc/library/zlib.rst Outdated Show resolved Hide resolved
Doc/library/zlib.rst Outdated Show resolved Hide resolved
Modules/zlibmodule.c Outdated Show resolved Hide resolved
@rhpvorderman
Copy link
Contributor Author

@ZackerySpytz Thank you for the review! I addressed your comments.

@github-actions github-actions bot removed the stale Stale PR or inactive for long period of time. label Jun 2, 2021
@rhpvorderman
Copy link
Contributor Author

Changes incorporated in #27941

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

Successfully merging this pull request may close these issues.

4 participants