| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:e3180ce9-c7bd-12dc-6c63-09a241f88d78 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | A5DC:46014:194D064:2200A41:6969AE1C |
| html-safe-nonce | 9d30a8e08834064bea90a7caed5abdbeff415ce57dc3cff7fea1ad5ec69da9cd |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBNURDOjQ2MDE0OjE5NEQwNjQ6MjIwMEE0MTo2OTY5QUUxQyIsInZpc2l0b3JfaWQiOiIyOTA2Nzc2MjYzNTk5OTU5NTgwIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | f1cc52d98c151ea71b891349877571c0ed883f645fad634b4ea4abee6695c279 |
| hovercard-subject-tag | pull_request:1212758599 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | ///pull_requests/show/files |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/python/cpython/pull/101251/files |
| twitter:image | https://avatars.githubusercontent.com/u/31632587?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/31632587?s=400&v=4 |
| og:image:alt | Currently, all of this is done for every write() call:
https://github.com/python/cpython/blob/main/Lib/gzip.py#L266-L288
This pr stores GzipFile.write() data into a buffer to postpone most of the c... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 24c4c97a2d520cb286b35e1a4c22d7a4df3c26a2fa28dd7cdf0e65db327b4de7 |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/python/cpython git https://github.com/python/cpython.git |
| octolytics-dimension-user_id | 1525981 |
| octolytics-dimension-user_login | python |
| octolytics-dimension-repository_id | 81598961 |
| octolytics-dimension-repository_nwo | python/cpython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 81598961 |
| octolytics-dimension-repository_network_root_nwo | python/cpython |
| turbo-body-classes | logged-out env-production page-responsive full-width |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 124667f43168afb6c9c03b7c02eb5b1d2e1be3d9 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| Skip to content | https://github.com/python/cpython/pull/101251/files#start-of-content |
|
| https://github.com/ |
|
Sign in
| https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F101251%2Ffiles |
| GitHub CopilotWrite better code with AI | https://github.com/features/copilot |
| GitHub SparkBuild and deploy intelligent apps | https://github.com/features/spark |
| GitHub ModelsManage and compare prompts | https://github.com/features/models |
| MCP RegistryNewIntegrate external tools | https://github.com/mcp |
| ActionsAutomate any workflow | https://github.com/features/actions |
| CodespacesInstant dev environments | https://github.com/features/codespaces |
| IssuesPlan and track work | https://github.com/features/issues |
| Code ReviewManage code changes | https://github.com/features/code-review |
| GitHub Advanced SecurityFind and fix vulnerabilities | https://github.com/security/advanced-security |
| Code securitySecure your code as you build | https://github.com/security/advanced-security/code-security |
| Secret protectionStop leaks before they start | https://github.com/security/advanced-security/secret-protection |
| Why GitHub | https://github.com/why-github |
| Documentation | https://docs.github.com |
| Blog | https://github.blog |
| Changelog | https://github.blog/changelog |
| Marketplace | https://github.com/marketplace |
| View all features | https://github.com/features |
| Enterprises | https://github.com/enterprise |
| Small and medium teams | https://github.com/team |
| Startups | https://github.com/enterprise/startups |
| Nonprofits | https://github.com/solutions/industry/nonprofits |
| App Modernization | https://github.com/solutions/use-case/app-modernization |
| DevSecOps | https://github.com/solutions/use-case/devsecops |
| DevOps | https://github.com/solutions/use-case/devops |
| CI/CD | https://github.com/solutions/use-case/ci-cd |
| View all use cases | https://github.com/solutions/use-case |
| Healthcare | https://github.com/solutions/industry/healthcare |
| Financial services | https://github.com/solutions/industry/financial-services |
| Manufacturing | https://github.com/solutions/industry/manufacturing |
| Government | https://github.com/solutions/industry/government |
| View all industries | https://github.com/solutions/industry |
| View all solutions | https://github.com/solutions |
| AI | https://github.com/resources/articles?topic=ai |
| Software Development | https://github.com/resources/articles?topic=software-development |
| DevOps | https://github.com/resources/articles?topic=devops |
| Security | https://github.com/resources/articles?topic=security |
| View all topics | https://github.com/resources/articles |
| Customer stories | https://github.com/customer-stories |
| Events & webinars | https://github.com/resources/events |
| Ebooks & reports | https://github.com/resources/whitepapers |
| Business insights | https://github.com/solutions/executive-insights |
| GitHub Skills | https://skills.github.com |
| Documentation | https://docs.github.com |
| Customer support | https://support.github.com |
| Community forum | https://github.com/orgs/community/discussions |
| Trust center | https://github.com/trust-center |
| Partners | https://github.com/partners |
| GitHub SponsorsFund open source developers | https://github.com/sponsors |
| Security Lab | https://securitylab.github.com |
| Maintainer Community | https://maintainers.github.com |
| Accelerator | https://github.com/accelerator |
| Archive Program | https://archiveprogram.github.com |
| Topics | https://github.com/topics |
| Trending | https://github.com/trending |
| Collections | https://github.com/collections |
| Enterprise platformAI-powered developer platform | https://github.com/enterprise |
| GitHub Advanced SecurityEnterprise-grade security features | https://github.com/security/advanced-security |
| Copilot for BusinessEnterprise-grade AI features | https://github.com/features/copilot/copilot-business |
| Premium SupportEnterprise-grade 24/7 support | https://github.com/premium-support |
| Pricing | https://github.com/pricing |
| Search syntax tips | https://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax |
| documentation | https://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%2F101251%2Ffiles |
|
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%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=python%2Fcpython |
| Reload | https://github.com/python/cpython/pull/101251/files |
| Reload | https://github.com/python/cpython/pull/101251/files |
| Reload | https://github.com/python/cpython/pull/101251/files |
|
python
| https://github.com/python |
| cpython | https://github.com/python/cpython |
| Please reload this page | https://github.com/python/cpython/pull/101251/files |
|
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 page | https://github.com/python/cpython/pull/101251/files |
|
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 service | https://docs.github.com/terms |
| privacy statement | https://docs.github.com/privacy |
| Sign in | https://github.com/login?return_to=%2Fpython%2Fcpython%2Fissues%2Fnew%2Fchoose |
| gpshead | https://github.com/gpshead |
| python:main | https://github.com/python/cpython/tree/main |
| CCLDArjun:buffered-gzip-writes | https://github.com/CCLDArjun/cpython/tree/buffered-gzip-writes |
|
Conversation
19
| https://github.com/python/cpython/pull/101251 |
|
Commits
17
| https://github.com/python/cpython/pull/101251/commits |
|
Checks
0
| https://github.com/python/cpython/pull/101251/checks |
|
Files changed
| https://github.com/python/cpython/pull/101251/files |
| Please reload this page | https://github.com/python/cpython/pull/101251/files |
|
gh-89550: Buffer GzipFile.write to reduce execution time by ~15%
| https://github.com/python/cpython/pull/101251/files#top |
|
Show all changes
17 commits
| https://github.com/python/cpython/pull/101251/files |
|
943ca9c
initial testing to see if it's faster
CCLDArjun Jan 22, 2023
| https://github.com/python/cpython/pull/101251/commits/943ca9c92c9a897d657ea19ea7ed1e7d2f49a289 |
|
6f4701b
Merge branch 'python:main' into buffered-gzip-writes
CCLDArjun Jan 22, 2023
| https://github.com/python/cpython/pull/101251/commits/6f4701bb27e94981b8d03cee91af71bce4d9caaf |
|
8653faf
use io.BufferedWriter to buffer gzip writes
CCLDArjun Jan 22, 2023
| https://github.com/python/cpython/pull/101251/commits/8653faf0305db8464ee7cef66e23ebe72d88563a |
|
1c36625
:Merge branch 'buffered-gzip-writes' of https://github.com/ccldarjun/…
CCLDArjun Jan 22, 2023
| https://github.com/python/cpython/pull/101251/commits/1c366253d5c222b19f8a278d7b248f5699097564 |
|
bc4d929
news blurb
CCLDArjun Jan 22, 2023
| https://github.com/python/cpython/pull/101251/commits/bc4d929e18856b5a2dcc8bbaf002543c67b4c565 |
|
ef9dd50
Merge branch 'main' into buffered-gzip-writes
CCLDArjun Jan 26, 2023
| https://github.com/python/cpython/pull/101251/commits/ef9dd505089d17b595f5a4ed49d94b1dc3d2dc04 |
|
b3aa1f7
added buffer_size for file writes
CCLDArjun Feb 18, 2023
| https://github.com/python/cpython/pull/101251/commits/b3aa1f71b6107e3eccf930e4598eb13d735cc7b2 |
|
ad2dc9b
:Merge branch 'buffered-gzip-writes' of https://github.com/ccldarjun/…
CCLDArjun Feb 18, 2023
| https://github.com/python/cpython/pull/101251/commits/ad2dc9bbef60451e91c6888b228f2cc2476f2112 |
|
a929ac8
comment for _write_raw
CCLDArjun Feb 18, 2023
| https://github.com/python/cpython/pull/101251/commits/a929ac8deedeb61971260d894b18f76f035aa17e |
|
d1618f2
common DEFAULT_WRITE_BUFFER_SIZE
CCLDArjun Feb 18, 2023
| https://github.com/python/cpython/pull/101251/commits/d1618f26050f3a5abcca8625a1aa85fa2beaed6e |
|
a7efd1b
Merge branch 'main' into buffered-gzip-writes
CCLDArjun Feb 18, 2023
| https://github.com/python/cpython/pull/101251/commits/a7efd1b58b0ee3337ca71af45dad5eaf24114809 |
|
d0da047
Merge branch 'main' into buffered-gzip-writes
CCLDArjun Feb 22, 2023
| https://github.com/python/cpython/pull/101251/commits/d0da0473232854ebb7217a0733a8536efc0509ae |
|
fe31588
use constant for write buffer size
CCLDArjun Feb 23, 2023
| https://github.com/python/cpython/pull/101251/commits/fe31588314f11c40d5a9de54bd15ec746898bf6e |
|
875ebd8
Merge branch 'main' into buffered-gzip-writes
CCLDArjun Apr 24, 2023
| https://github.com/python/cpython/pull/101251/commits/875ebd86c0400e9a04c26f0561a944692bb3872f |
|
e33fc19
Merge branch 'main' into buffered-gzip-writes
AlexWaygood May 8, 2023
| https://github.com/python/cpython/pull/101251/commits/e33fc197fcecc26a2f68c95115707965ba7fec8e |
|
5ef4674
improve news wording and ReSTify
gpshead May 8, 2023
| https://github.com/python/cpython/pull/101251/commits/5ef4674d604ed5415467225c279b23a107657292 |
|
c0f3d2a
Merge branch 'main' into buffered-gzip-writes
gpshead May 8, 2023
| https://github.com/python/cpython/pull/101251/commits/c0f3d2a462849dfcae9afcd0327a0bc9dc96ee4c |
|
Clear filters
| https://github.com/python/cpython/pull/101251/files |
| Please reload this page | https://github.com/python/cpython/pull/101251/files |
| Please reload this page | https://github.com/python/cpython/pull/101251/files |
|
gzip.py
| https://github.com/python/cpython/pull/101251/files#diff-ad9b54ac8ef847cbb11fb0550f7e8cede55b1d92de15899e0a885a94a124838a |
|
2023-01-22-14-53-12.gh-issue-89550.c1U23f.rst
| https://github.com/python/cpython/pull/101251/files#diff-6cac834b8c2ad27fa061e8c7285e389b08f6b146962d2d8211aa04a57e6d651f |
| Lib/gzip.py | https://github.com/python/cpython/pull/101251/files#diff-ad9b54ac8ef847cbb11fb0550f7e8cede55b1d92de15899e0a885a94a124838a |
|
View file
| https://github.com/CCLDArjun/cpython/blob/c0f3d2a462849dfcae9afcd0327a0bc9dc96ee4c/Lib/gzip.py |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/python/cpython/pull/101251/{{ revealButtonHref }} |
|
| https://github.com/python/cpython/pull/101251/files#diff-ad9b54ac8ef847cbb11fb0550f7e8cede55b1d92de15899e0a885a94a124838a |
|
| https://github.com/python/cpython/pull/101251/files#diff-ad9b54ac8ef847cbb11fb0550f7e8cede55b1d92de15899e0a885a94a124838a |
|
| https://github.com/python/cpython/pull/101251/files#diff-ad9b54ac8ef847cbb11fb0550f7e8cede55b1d92de15899e0a885a94a124838a |
|
| https://github.com/python/cpython/pull/101251/files#diff-ad9b54ac8ef847cbb11fb0550f7e8cede55b1d92de15899e0a885a94a124838a |
|
| https://github.com/python/cpython/pull/101251/files#diff-ad9b54ac8ef847cbb11fb0550f7e8cede55b1d92de15899e0a885a94a124838a |
|
| https://github.com/python/cpython/pull/101251/files#diff-ad9b54ac8ef847cbb11fb0550f7e8cede55b1d92de15899e0a885a94a124838a |
|
| https://github.com/python/cpython/pull/101251/files#diff-ad9b54ac8ef847cbb11fb0550f7e8cede55b1d92de15899e0a885a94a124838a |
| Please reload this page | https://github.com/python/cpython/pull/101251/files |
|
| https://github.com/python/cpython/pull/101251/files#diff-ad9b54ac8ef847cbb11fb0550f7e8cede55b1d92de15899e0a885a94a124838a |
|
| https://github.com/python/cpython/pull/101251/files#diff-ad9b54ac8ef847cbb11fb0550f7e8cede55b1d92de15899e0a885a94a124838a |
| Please reload this page | https://github.com/python/cpython/pull/101251/files |
|
| https://github.com/python/cpython/pull/101251/files#diff-ad9b54ac8ef847cbb11fb0550f7e8cede55b1d92de15899e0a885a94a124838a |
|
| https://github.com/python/cpython/pull/101251/files#diff-ad9b54ac8ef847cbb11fb0550f7e8cede55b1d92de15899e0a885a94a124838a |
|
| https://github.com/python/cpython/pull/101251/files#diff-ad9b54ac8ef847cbb11fb0550f7e8cede55b1d92de15899e0a885a94a124838a |
|
| https://github.com/python/cpython/pull/101251/files#diff-ad9b54ac8ef847cbb11fb0550f7e8cede55b1d92de15899e0a885a94a124838a |
|
| https://github.com/python/cpython/pull/101251/files#diff-ad9b54ac8ef847cbb11fb0550f7e8cede55b1d92de15899e0a885a94a124838a |
|
| https://github.com/python/cpython/pull/101251/files#diff-ad9b54ac8ef847cbb11fb0550f7e8cede55b1d92de15899e0a885a94a124838a |
| Misc/NEWS.d/next/Library/2023-01-22-14-53-12.gh-issue-89550.c1U23f.rst | https://github.com/python/cpython/pull/101251/files#diff-6cac834b8c2ad27fa061e8c7285e389b08f6b146962d2d8211aa04a57e6d651f |
|
View file
| https://github.com/CCLDArjun/cpython/blob/c0f3d2a462849dfcae9afcd0327a0bc9dc96ee4c/Misc/NEWS.d/next/Library/2023-01-22-14-53-12.gh-issue-89550.c1U23f.rst |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/python/cpython/pull/101251/{{ revealButtonHref }} |
|
| https://github.com |
| Terms | https://docs.github.com/site-policy/github-terms/github-terms-of-service |
| Privacy | https://docs.github.com/site-policy/privacy-policies/github-privacy-statement |
| Security | https://github.com/security |
| Status | https://www.githubstatus.com/ |
| Community | https://github.community/ |
| Docs | https://docs.github.com/ |
| Contact | https://support.github.com?tags=dotcom-footer |