Skip to content

gh-91349: Adjust default compression level to 6 (down from 9) in gzip and tarfile #131470

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

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

morotti
Copy link
Contributor

@morotti morotti commented Mar 19, 2025

It is the default level used by most compression tools and a better tradeoff between speed and performance.

see discussion in #91349 (comment)


📚 Documentation preview 📚: https://cpython-previews--131470.org.readthedocs.build/

@morotti morotti requested a review from ethanfurman as a code owner March 19, 2025 16:11
@merwok merwok added awaiting core review stdlib Python modules in the Lib dir type-feature A feature request or enhancement and removed awaiting core review labels May 19, 2025
@morotti morotti force-pushed the rmorotti-compresion-level branch from e2d0562 to a2d0966 Compare June 25, 2025 13:22
…n gzip and tarfile

It is the default level used by most compression tools and a
better tradeoff between speed and performance.
@morotti morotti force-pushed the rmorotti-compresion-level branch from a2d0966 to b17e21d Compare June 25, 2025 13:31
@morotti
Copy link
Contributor Author

morotti commented Jun 25, 2025

@merwok I added the versionchanged notes. and found another comment in tarfile.rst to adjust.
it's a bit repetitive to add on each signature I suppose but I suppose it's fine.

You can review again.

@emmatyping emmatyping removed type-feature A feature request or enhancement stdlib Python modules in the Lib dir labels Jun 26, 2025
@morotti
Copy link
Contributor Author

morotti commented Jun 27, 2025

@gpshead you've replied multiple times to my questions on improving compression code with "PR welcome". maybe you would be interested in reviewing this PR?

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