René's URL Explorer Experiment


Title: bpo-43613: Faster implementation of gzip.compress and gzip.decompress by rhpvorderman · Pull Request #27941 · python/cpython · GitHub

Open Graph Title: bpo-43613: Faster implementation of gzip.compress and gzip.decompress by rhpvorderman · Pull Request #27941 · python/cpython

X Title: bpo-43613: Faster implementation of gzip.compress and gzip.decompress by rhpvorderman · Pull Request #27941 · python/cpython

Description: This also includes the changes from #25011 for bpo-43612. These make more sense in the context of these changes. Currently gzip.compress and gzip.decompress are implemented with GzipFile. This is a...

Open Graph Description: This also includes the changes from #25011 for bpo-43612. These make more sense in the context of these changes. Currently gzip.compress and gzip.decompress are implemented with GzipFile. This is a...

X Description: This also includes the changes from #25011 for bpo-43612. These make more sense in the context of these changes. Currently gzip.compress and gzip.decompress are implemented with GzipFile. This is a...

Opengraph URL: https://github.com/python/cpython/pull/27941

X: @github

direct link

Domain: github.com

route-pattern/_view_fragments/voltron/pull_requests/show/:user_id/:repository/:id/pull_request_layout(.:format)
route-controllervoltron_pull_requests_fragments
route-actionpull_request_layout
fetch-noncev2:69781647-f64a-760d-5508-7a51794c0f44
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idC1A4:323DD4:28F2E99:377AFF7:696AE5D5
html-safe-noncebfa00cf9957fb55c86ccf07a09837e117ab3d3dd5ea4f2fd5a601a6c379fdcb9
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDMUE0OjMyM0RENDoyOEYyRTk5OjM3N0FGRjc6Njk2QUU1RDUiLCJ2aXNpdG9yX2lkIjoiNDM1Nzk0NzQzOTc3MTczOTYwNSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac131dc57cf699bda1fc57c36e18d5cd90029b0d7cffe76e97df73baeaf335bed4
hovercard-subject-tagpull_request:719427318
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/pull_requests_fragments/pull_request_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/voltron/pull_requests/show/python/cpython/27941/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/fb9b7d1780b19733799b902d66bb16f9f03782a147ec1894375bf822d54fd706/python/cpython/pull/27941
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/fb9b7d1780b19733799b902d66bb16f9f03782a147ec1894375bf822d54fd706/python/cpython/pull/27941
og:image:altThis also includes the changes from #25011 for bpo-43612. These make more sense in the context of these changes. Currently gzip.compress and gzip.decompress are implemented with GzipFile. This is a...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamerhpvorderman
hostnamegithub.com
expected-hostnamegithub.com
None5f99f7c1d70f01da5b93e5ca90303359738944d8ab470e396496262c66e60b8d
turbo-cache-controlno-preview
go-importgithub.com/python/cpython git https://github.com/python/cpython.git
octolytics-dimension-user_id1525981
octolytics-dimension-user_loginpython
octolytics-dimension-repository_id81598961
octolytics-dimension-repository_nwopython/cpython
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id81598961
octolytics-dimension-repository_network_root_nwopython/cpython
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release3d84d50b3c75fa36755c3cf392edbc09e626f979
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/python/cpython/pull/27941#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F27941
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F27941
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fpull_requests_fragments%2Fpull_request_layout&source=header-repo&source_repo=python%2Fcpython
Reloadhttps://github.com/python/cpython/pull/27941
Reloadhttps://github.com/python/cpython/pull/27941
Reloadhttps://github.com/python/cpython/pull/27941
python https://github.com/python
cpythonhttps://github.com/python/cpython
Please reload this pagehttps://github.com/python/cpython/pull/27941
Notifications https://github.com/login?return_to=%2Fpython%2Fcpython
Fork 33.9k https://github.com/login?return_to=%2Fpython%2Fcpython
Star 71.1k https://github.com/login?return_to=%2Fpython%2Fcpython
Code https://github.com/python/cpython
Issues 5k+ https://github.com/python/cpython/issues
Pull requests 2.1k https://github.com/python/cpython/pulls
Actions https://github.com/python/cpython/actions
Projects 31 https://github.com/python/cpython/projects
Security Uh oh! There was an error while loading. Please reload this page. https://github.com/python/cpython/security
Please reload this pagehttps://github.com/python/cpython/pull/27941
Insights https://github.com/python/cpython/pulse
Code https://github.com/python/cpython
Issues https://github.com/python/cpython/issues
Pull requests https://github.com/python/cpython/pulls
Actions https://github.com/python/cpython/actions
Projects https://github.com/python/cpython/projects
Security https://github.com/python/cpython/security
Insights https://github.com/python/cpython/pulse
Sign up for GitHub https://github.com/signup?return_to=%2Fpython%2Fcpython%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fpython%2Fcpython%2Fissues%2Fnew%2Fchoose
Jump to bottomhttps://github.com/python/cpython/pull/27941#issue-comment-box
ambvhttps://github.com/ambv
python:mainhttps://github.com/python/cpython/tree/main
rhpvorderman:bpo-43613https://github.com/rhpvorderman/cpython/tree/bpo-43613
bpo-43613: Faster implementation of gzip.compress and gzip.decompress https://github.com/python/cpython/pull/27941#top
ambvhttps://github.com/ambv
python:mainhttps://github.com/python/cpython/tree/main
rhpvorderman:bpo-43613https://github.com/rhpvorderman/cpython/tree/bpo-43613
Conversation 5 https://github.com/python/cpython/pull/27941
Commits 22 https://github.com/python/cpython/pull/27941/commits
Checks 0 https://github.com/python/cpython/pull/27941/checks
Files changed https://github.com/python/cpython/pull/27941/files
Please reload this pagehttps://github.com/python/cpython/pull/27941
https://github.co/hiddenchars
https://github.com/python/cpython/pull/{{ revealButtonHref }}
https://github.com/rhpvorderman
rhpvordermanhttps://github.com/rhpvorderman
Aug 25, 2021https://github.com/python/cpython/pull/27941#issue-978929376
Please reload this pagehttps://github.com/python/cpython/pull/27941
#25011https://github.com/python/cpython/pull/25011
bpo-43612https://bugs.python.org/issue43612
https://bugs.python.org/issue43613https://bugs.python.org/issue43613
Please reload this pagehttps://github.com/python/cpython/pull/27941
rhpvordermanhttps://github.com/rhpvorderman
August 25, 2021 10:57https://github.com/python/cpython/pull/27941#commits-pushed-608876c
https://github.com/rhpvorderman
Add test for zlib.compress wbitshttps://github.com/python/cpython/pull/27941/commits/608876cfb70be5315c279f40410b2544647237d9
608876chttps://github.com/python/cpython/pull/27941/commits/608876cfb70be5315c279f40410b2544647237d9
https://github.com/rhpvorderman
Add wbits argument to zlib.compresshttps://github.com/python/cpython/pull/27941/commits/12fb5a545725355abf0a2b1868a4a23863d64790
12fb5a5https://github.com/python/cpython/pull/27941/commits/12fb5a545725355abf0a2b1868a4a23863d64790
https://github.com/rhpvorderman
Use clinic to generate inputhttps://github.com/python/cpython/pull/27941/commits/1b345105cee55dbbc9aedbd876f8f48fd67bbbcf
1b34510https://github.com/python/cpython/pull/27941/commits/1b345105cee55dbbc9aedbd876f8f48fd67bbbcf
https://github.com/rhpvorderman
Update documentation for zlibhttps://github.com/python/cpython/pull/27941/commits/4e90311b315c91fa810b4a8b4af25ed5d7d6e759
4e90311https://github.com/python/cpython/pull/27941/commits/4e90311b315c91fa810b4a8b4af25ed5d7d6e759
https://github.com/rhpvorderman
Add blurb news entry for zlib.compress wbits parameterhttps://github.com/python/cpython/pull/27941/commits/971725222fe9156494c85776cf3a0cb338c3d7e8
9717252https://github.com/python/cpython/pull/27941/commits/971725222fe9156494c85776cf3a0cb338c3d7e8
https://github.com/rhpvorderman
Fix doc typohttps://github.com/python/cpython/pull/27941/commits/d70390ebbf71e063291846d95570e05d85d05a2a
d70390ehttps://github.com/python/cpython/pull/27941/commits/d70390ebbf71e063291846d95570e05d85d05a2a
https://github.com/rhpvorderman
Remove unnecessary whitespace, add punctionation and complete sentences.https://github.com/python/cpython/pull/27941/commits/c819e3ef61e0f43223b08514240c95a8879e2dc0
c819e3ehttps://github.com/python/cpython/pull/27941/commits/c819e3ef61e0f43223b08514240c95a8879e2dc0
https://github.com/rhpvorderman
Break line to comply with PEP-7https://github.com/python/cpython/pull/27941/commits/1f3481f60bcbd8673d96b6d6f822677c44aa4474
1f3481fhttps://github.com/python/cpython/pull/27941/commits/1f3481f60bcbd8673d96b6d6f822677c44aa4474
https://github.com/rhpvorderman
Update blurb to include :func: referencehttps://github.com/python/cpython/pull/27941/commits/8019932e5f0e77272b0900b330c131f17f29fd58
8019932https://github.com/python/cpython/pull/27941/commits/8019932e5f0e77272b0900b330c131f17f29fd58
https://github.com/rhpvorderman
Remove erroneous double backtickshttps://github.com/python/cpython/pull/27941/commits/0ea98cfde71873109b9c99e2e65392d145329baa
0ea98cfhttps://github.com/python/cpython/pull/27941/commits/0ea98cfde71873109b9c99e2e65392d145329baa
https://github.com/rhpvorderman
Faster gzip.compress implementationhttps://github.com/python/cpython/pull/27941/commits/d1c86dcf1dde1fb8442c93d999d2058c0cc7a4b1
d1c86dchttps://github.com/python/cpython/pull/27941/commits/d1c86dcf1dde1fb8442c93d999d2058c0cc7a4b1
https://github.com/rhpvorderman
More efficiently decompress gzip files in memoryhttps://github.com/python/cpython/pull/27941/commits/19a03589391d643a4c1fccdd2a106e8e9e0ccb08
19a0358https://github.com/python/cpython/pull/27941/commits/19a03589391d643a4c1fccdd2a106e8e9e0ccb08
https://github.com/rhpvorderman
Ensure correct endiannesshttps://github.com/python/cpython/pull/27941/commits/5155857b327b2f17e0863744a40c8e2a8e85b044
5155857https://github.com/python/cpython/pull/27941/commits/5155857b327b2f17e0863744a40c8e2a8e85b044
https://github.com/rhpvorderman
Remove redundant linehttps://github.com/python/cpython/pull/27941/commits/fa188a6fc31541bd19783c364c4944053ba1b5e1
fa188a6https://github.com/python/cpython/pull/27941/commits/fa188a6fc31541bd19783c364c4944053ba1b5e1
https://github.com/rhpvorderman
Fix typos and test errorshttps://github.com/python/cpython/pull/27941/commits/4e76cf597f1c050bfb65e7c06c15549b35cde5bc
4e76cf5https://github.com/python/cpython/pull/27941/commits/4e76cf597f1c050bfb65e7c06c15549b35cde5bc
https://github.com/rhpvorderman
Revert changing default on compress for backwards compatibilityhttps://github.com/python/cpython/pull/27941/commits/0280c953b645b261afe0d7214ac56506071903da
0280c95https://github.com/python/cpython/pull/27941/commits/0280c953b645b261afe0d7214ac56506071903da
https://github.com/rhpvorderman
Update documentation with gzip speed improvementshttps://github.com/python/cpython/pull/27941/commits/8ddee293b19215c811f4998a44ed74c8b1ec400c
8ddee29https://github.com/python/cpython/pull/27941/commits/8ddee293b19215c811f4998a44ed74c8b1ec400c
https://github.com/rhpvorderman
Add a blurb for gzip speed improvementshttps://github.com/python/cpython/pull/27941/commits/77f79fda6e4160dddf62b85df8df2dddac82e930
77f79fdhttps://github.com/python/cpython/pull/27941/commits/77f79fda6e4160dddf62b85df8df2dddac82e930
https://github.com/rhpvorderman
Use + instead of bytes.join() methodhttps://github.com/python/cpython/pull/27941/commits/ca3e5432d3d8a31191c0df87c8aa37c312ba4999
ca3e543https://github.com/python/cpython/pull/27941/commits/ca3e5432d3d8a31191c0df87c8aa37c312ba4999
https://github.com/the-knights-who-say-ni
the-knights-who-say-nihttps://github.com/the-knights-who-say-ni
CLA signed https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22CLA%20signed%22
Aug 25, 2021https://github.com/python/cpython/pull/27941#event-5205540952
https://github.com/bedevere-bot
bedevere-bothttps://github.com/bedevere-bot
awaiting review https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20review%22
Aug 25, 2021https://github.com/python/cpython/pull/27941#event-5205541168
https://github.com/rhpvorderman
rhpvordermanhttps://github.com/rhpvorderman
Aug 25, 2021 https://github.com/python/cpython/pull/27941#ref-pullrequest-839489240
bpo-43612: Add wbits parameter to zlib.compress #25011 https://github.com/python/cpython/pull/25011
https://github.com/ambv
ambvhttps://github.com/ambv
Aug 25, 2021 https://github.com/python/cpython/pull/27941#pullrequestreview-738497458
View reviewed changes https://github.com/python/cpython/pull/27941/files/ca3e5432d3d8a31191c0df87c8aa37c312ba4999
Lib/gzip.pyhttps://github.com/python/cpython/pull/27941/files/ca3e5432d3d8a31191c0df87c8aa37c312ba4999#diff-ad9b54ac8ef847cbb11fb0550f7e8cede55b1d92de15899e0a885a94a124838a
Please reload this pagehttps://github.com/python/cpython/pull/27941
https://github.com/ambv
ambvhttps://github.com/ambv
Aug 25, 2021 https://github.com/python/cpython/pull/27941#pullrequestreview-738509736
View reviewed changes https://github.com/python/cpython/pull/27941/files/ca3e5432d3d8a31191c0df87c8aa37c312ba4999
Lib/test/test_zlib.pyhttps://github.com/python/cpython/pull/27941/files/ca3e5432d3d8a31191c0df87c8aa37c312ba4999#diff-029a0ce1b89a517af9cd486ab867641e1c90e4ac089dded48ee1b65e604b64aa
Please reload this pagehttps://github.com/python/cpython/pull/27941
https://github.com/ambv
ambvhttps://github.com/ambv
Aug 25, 2021 https://github.com/python/cpython/pull/27941#pullrequestreview-738527695
View reviewed changes https://github.com/python/cpython/pull/27941/files/ca3e5432d3d8a31191c0df87c8aa37c312ba4999
Lib/gzip.pyhttps://github.com/python/cpython/pull/27941/files/ca3e5432d3d8a31191c0df87c8aa37c312ba4999#diff-ad9b54ac8ef847cbb11fb0550f7e8cede55b1d92de15899e0a885a94a124838a
Please reload this pagehttps://github.com/python/cpython/pull/27941
rhpvordermanhttps://github.com/rhpvorderman
August 30, 2021 14:23https://github.com/python/cpython/pull/27941#commits-pushed-f881f7e
https://github.com/rhpvorderman
https://github.com/ambv
Reword docstring for read_gzip_headerhttps://github.com/python/cpython/pull/27941/commits/f881f7e06b456344997ce2b75bb4f1013fc61ec9
f881f7ehttps://github.com/python/cpython/pull/27941/commits/f881f7e06b456344997ce2b75bb4f1013fc61ec9
https://github.com/rhpvorderman
Update docstring for gzip.compresshttps://github.com/python/cpython/pull/27941/commits/97a8100b81d0bd8fa7ee2b58e41d18764f6a4438
97a8100https://github.com/python/cpython/pull/27941/commits/97a8100b81d0bd8fa7ee2b58e41d18764f6a4438
https://github.com/rhpvorderman
https://github.com/ambv
Use subtest for zlib.compress/decompress test.https://github.com/python/cpython/pull/27941/commits/eeb7766c01f34c3326b23d0d67c162324889566e
eeb7766https://github.com/python/cpython/pull/27941/commits/eeb7766c01f34c3326b23d0d67c162324889566e
https://github.com/rhpvorderman
rhpvordermanhttps://github.com/rhpvorderman
Aug 30, 2021https://github.com/python/cpython/pull/27941#issuecomment-908305944
@ambvhttps://github.com/ambv
Please reload this pagehttps://github.com/python/cpython/pull/27941
https://github.com/ambv
ambvhttps://github.com/ambv
ea23e78https://github.com/python/cpython/commit/ea23e7820f02840368569db8082bd0ca4d59b62a
Sep 2, 2021https://github.com/python/cpython/pull/27941#event-5248169649
https://github.com/bedevere-bot
bedevere-bothttps://github.com/bedevere-bot
awaiting review https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20review%22
Sep 2, 2021https://github.com/python/cpython/pull/27941#event-5248170038
bpo-45507: Throw EOF error when gzip headers or trailers are truncated #29023 https://github.com/python/cpython/pull/29023
bpo-45507: EOFErrors should be thrown for truncated gzip members #29029 https://github.com/python/cpython/pull/29029
https://github.com/rhpvorderman
rhpvordermanhttps://github.com/rhpvorderman
November 19, 2021 09:30https://github.com/python/cpython/pull/27941#event-5644110478
https://github.com/rhpvorderman
rhpvordermanhttps://github.com/rhpvorderman
Oct 17, 2022 https://github.com/python/cpython/pull/27941#ref-issue-1410941050
Give python-isal a mention in the zlib/gzip documentation #98347 https://github.com/python/cpython/issues/98347
Sign up for freehttps://github.com/join?source=comment-repo
Sign in to commenthttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F27941
https://github.com/ambv
ambv https://github.com/ambv
https://github.com/python/cpython/pull/27941/files/ca3e5432d3d8a31191c0df87c8aa37c312ba4999
Please reload this pagehttps://github.com/python/cpython/pull/27941
https://github.com/rhpvorderman
https://github.com/ambv
https://github.com/the-knights-who-say-ni
https://github.com/bedevere-bot
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.