René's URL Explorer Experiment


Title: Explore using PyBytesWriter API for compression libraries output buffers · Issue #139877 · python/cpython · GitHub

Open Graph Title: Explore using PyBytesWriter API for compression libraries output buffers · Issue #139877 · python/cpython

X Title: Explore using PyBytesWriter API for compression libraries output buffers · Issue #139877 · python/cpython

Description: Feature or enhancement The new PyBytesWriter() API is fast and easy to use. I expect it will bring a nice improvement both to maintainability and speed for compression output buffer management. I have some perf recordings showing that a ...

Open Graph Description: Feature or enhancement The new PyBytesWriter() API is fast and easy to use. I expect it will bring a nice improvement both to maintainability and speed for compression output buffer management. I h...

X Description: Feature or enhancement The new PyBytesWriter() API is fast and easy to use. I expect it will bring a nice improvement both to maintainability and speed for compression output buffer management. I h...

Opengraph URL: https://github.com/python/cpython/issues/139877

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Explore using PyBytesWriter API for compression libraries output buffers","articleBody":"# Feature or enhancement\n\nThe new `PyBytesWriter()` API is fast and easy to use. I expect it will bring a nice improvement both to maintainability and speed for compression output buffer management.\n\nI have some perf recordings showing that a large portion (>50%!) of time in decompression for a mix of data sizes (1K, 1M, 1G) is in `_BlocksOutputBuffer_Finish`, re-assembling the output buffer.\n\nI also made a very hacky modification to pycore_blocks_output_buffer.h to use `PyBytesWriter()` and found it greatly sped up decompression time:\n\nThe below two tests are operating on compressed enwiki content with zstd compression.\n| test | main | PyBytesWriter() |\n|--------|--------|--------|\n| decompress 1M | 2.15ms | 1.65ms |\n| decompress 1G | 2.2s | 1.73s |\n\nThose are 25-30% speedups!\n\nI think this is enough to motivate a refactor of this code to use `PyBytesWriter()` and benchmark against the current implementation across compression modules and data sizes.\n\ncc @vstinner for viz\n\n\u003c!-- gh-linked-prs -->\n### Linked PRs\n* gh-139976\n\u003c!-- /gh-linked-prs -->\n","author":{"url":"https://github.com/emmatyping","@type":"Person","name":"emmatyping"},"datePublished":"2025-10-10T00:19:08Z","url":"https://github.com/python/cpython/issues/139877"}

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:b32860ea-be45-d163-964c-97d7e4a184e0
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id9B9A:1050BD:14AF633:1B5F7A3:6B01F9FE
html-safe-nonce201b8262fce391bbff2e0338556e169a2290ee8ca054b0163a4df7f065d68619
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5QjlBOjEwNTBCRDoxNEFGNjMzOjFCNUY3QTM6NkIwMUY5RkUiLCJ2aXNpdG9yX2lkIjoiMTM0MjkxNjYyMTc2MDU5MjM4MiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmacaeeb82553d8e3c1fbe730f0331c4af1016d07263374eb6108bf67f7a0b9d6849
hovercard-subject-tagissue:3500964691
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/python/cpython/139877/issue_layout
twitter:imagehttps://opengraph.githubassets.com/70dd524b1217baf2cb83ec5574c3aab55bb29497eba38a6c3d0fa1c34aac18f6/python/cpython/issues/139877
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/70dd524b1217baf2cb83ec5574c3aab55bb29497eba38a6c3d0fa1c34aac18f6/python/cpython/issues/139877
og:image:altFeature or enhancement The new PyBytesWriter() API is fast and easy to use. I expect it will bring a nice improvement both to maintainability and speed for compression output buffer management. I h...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameemmatyping
hostnamegithub.com
expected-hostnamegithub.com
None87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456
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
release423dbb54c5e7bfecc838eb387c1435eb3d0e760d
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/python/cpython/issues/139877#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fissues%2F139877
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
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
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://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/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fissues%2F139877
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=python%2Fcpython
Reloadhttps://github.com/python/cpython/issues/139877
Reloadhttps://github.com/python/cpython/issues/139877
Reloadhttps://github.com/python/cpython/issues/139877
pythonhttps://github.com/python
cpythonhttps://github.com/python/cpython
Codehttps://github.com/python/cpython
Issues5k+ (5k+)https://github.com/python/cpython/issues
Pull requests2.4k (2.4k)https://github.com/python/cpython/pulls
Actionshttps://github.com/python/cpython/actions
Projectshttps://github.com/python/cpython/projects
Security and qualityhttps://github.com/python/cpython/security
Insightshttps://github.com/python/cpython/insights
https://github.com/python/cpython
New issuehttps://github.com/login?return_to=https://github.com/python/cpython/issues/139877
New issuehttps://github.com/login?return_to=https://github.com/python/cpython/issues/139877
Explore using PyBytesWriter API for compression libraries output buffershttps://github.com/python/cpython/issues/139877#top
https://github.com/emmatyping
extension-modulesC modules in the Modules dirhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22extension-modules%22
performancePerformance or resource usagehttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22performance%22
type-featureA feature request or enhancementhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22type-feature%22
https://github.com/emmatyping
emmatypinghttps://github.com/emmatyping
on Oct 10, 2025https://github.com/python/cpython/issues/139877#issue-3500964691
@vstinnerhttps://github.com/vstinner
gh-139877: Use PyBytesWriter in pycore_blocks_output_buffer.h #139976https://github.com/python/cpython/pull/139976
emmatypinghttps://github.com/emmatyping
on Oct 10, 2025https://github.com/python/cpython/issues/139877#event-20196081218
emmatypinghttps://github.com/emmatyping
type-featureA feature request or enhancementhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22type-feature%22
performancePerformance or resource usagehttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22performance%22
extension-modulesC modules in the Modules dirhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22extension-modules%22
3.15bugs and security fixeshttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%223.15%22
on Oct 10, 2025https://github.com/python/cpython/issues/139877#event-20196081346
emmatypinghttps://github.com/emmatyping
Compression issues 🗜https://github.com/orgs/python/projects/20
on Oct 10, 2025https://github.com/python/cpython/issues/139877#event-20196081572
picnixzhttps://github.com/picnixz
3.15bugs and security fixeshttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%223.15%22
on Oct 10, 2025https://github.com/python/cpython/issues/139877#event-20209561179
https://github.com/cmaloney
cmaloneyhttps://github.com/cmaloney
on Oct 10, 2025https://github.com/python/cpython/issues/139877#issuecomment-3392529610
https://github.com/emmatyping
emmatypinghttps://github.com/emmatyping
on Oct 10, 2025https://github.com/python/cpython/issues/139877#issuecomment-3392604791
https://github.com/emmatyping
emmatypinghttps://github.com/emmatyping
on Oct 12, 2025https://github.com/python/cpython/issues/139877#issuecomment-3393749964
https://github.com/emmatyping
emmatypinghttps://github.com/emmatyping
on Oct 12, 2025https://github.com/python/cpython/issues/139877#issuecomment-3393790786
emmatypinghttps://github.com/emmatyping
on Oct 14, 2025https://github.com/python/cpython/issues/139877#event-20275170601
gh-139877: Use PyBytesWriter in pycore_blocks_output_buffer.h (#139976)https://github.com/python/cpython/commit/f262297d525e87906c5e4ab28e80284189641c9e
gh-139877https://github.com/python/cpython/issues/139877
#139976https://github.com/python/cpython/pull/139976
f262297https://github.com/python/cpython/commit/f262297d525e87906c5e4ab28e80284189641c9e
https://github.com/vstinner
vstinnerhttps://github.com/vstinner
on Oct 14, 2025https://github.com/python/cpython/issues/139877#issuecomment-3402875159
https://github.com/emmatyping
emmatypinghttps://github.com/emmatyping
on Oct 14, 2025https://github.com/python/cpython/issues/139877#issuecomment-3403100697
emmatypinghttps://github.com/emmatyping
completedhttps://github.com/python/cpython/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
on Oct 14, 2025https://github.com/python/cpython/issues/139877#event-20276685826
github-project-automationhttps://github.com/apps/github-project-automation
Compression issues 🗜https://github.com/orgs/python/projects/20
on Oct 14, 2025https://github.com/python/cpython/issues/139877
StanFromIrelandhttps://github.com/StanFromIreland
on Dec 6, 2025https://github.com/python/cpython/issues/139877#event-21401815643
pythongh-139877: Use PyBytesWriter in pycore_blocks_output_buffer.h (p…https://github.com/StanFromIreland/cpython/commit/308551f683055b7e95d51b7f1bfaeac094189adf
pythongh-139877https://github.com/python/cpython/issues/139877
p…https://github.com/python/cpython/pull/139976
308551fhttps://github.com/StanFromIreland/cpython/commit/308551f683055b7e95d51b7f1bfaeac094189adf
maikschulzehttps://github.com/maikschulze
on Nov 6, 2026https://github.com/python/cpython/issues/139877#event-35329337851
gh-NEW: Collect large compression outputs in blocks again on macOS an…https://github.com/maikschulze/cpython/commit/2d78d7b49d857c5c5bb5df497d005bf8ffde6057
2d78d7bhttps://github.com/maikschulze/cpython/commit/2d78d7b49d857c5c5bb5df497d005bf8ffde6057
gh-NEW: Collect large compression outputs in blocks again, except on …https://github.com/maikschulze/cpython/commit/2e7605f2a78c21320ac5a9a95b264b30dec63722
2e7605fhttps://github.com/maikschulze/cpython/commit/2e7605f2a78c21320ac5a9a95b264b30dec63722
gh-NEW: Collect large compression outputs in blocks again, except wit…https://github.com/maikschulze/cpython/commit/30e7ea33da6b5c6b507836d8371e973651f22bf5
30e7ea3https://github.com/maikschulze/cpython/commit/30e7ea33da6b5c6b507836d8371e973651f22bf5
gh-NEW: Collect large compression outputs in blocks again, except wit…https://github.com/maikschulze/cpython/commit/a37702315a810a8f4ad0335e37feecbda4476717
a377023https://github.com/maikschulze/cpython/commit/a37702315a810a8f4ad0335e37feecbda4476717
gh-NEW: Collect large compression outputs in blocks again, except wit…https://github.com/maikschulze/cpython/commit/cabb1e7b2923982c0de0404e6e30af75ab244989
cabb1e7https://github.com/maikschulze/cpython/commit/cabb1e7b2923982c0de0404e6e30af75ab244989
pythongh-161478: Collect large compression outputs in blocks again, e…https://github.com/maikschulze/cpython/commit/cceb7826fc31848a4675533db497583d0ca4a825
pythongh-161478https://github.com/python/cpython/issues/161478
cceb782https://github.com/maikschulze/cpython/commit/cceb7826fc31848a4675533db497583d0ca4a825
Sign up for freehttps://github.com/signup?return_to=https://github.com/python/cpython/issues/139877
Sign in to commenthttps://github.com/login?return_to=https://github.com/python/cpython/issues/139877
emmatypinghttps://github.com/emmatyping
extension-modulesC modules in the Modules dirhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22extension-modules%22
performancePerformance or resource usagehttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22performance%22
type-featureA feature request or enhancementhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22type-feature%22
Compression issues 🗜https://github.com/orgs/python/projects/20
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.