René's URL Explorer Experiment


Title: GH-99554: `marshal` bytecode more efficiently by brandtbucher · Pull Request #99555 · python/cpython · GitHub

Open Graph Title: GH-99554: `marshal` bytecode more efficiently by brandtbucher · Pull Request #99555 · python/cpython

X Title: GH-99554: `marshal` bytecode more efficiently by brandtbucher · Pull Request #99555 · python/cpython

Description: This shrinks the size of .pyc files by about 25%. It also removes an intermediate copy of the bytecode created during marshalling. Next steps will be removing the intermediate bytes object created during unmarshalling and performing the work of _PyCode_Quicken as part of this same move. Issue: gh-99554

Open Graph Description: This shrinks the size of .pyc files by about 25%. It also removes an intermediate copy of the bytecode created during marshalling. Next steps will be removing the intermediate bytes object created ...

X Description: This shrinks the size of .pyc files by about 25%. It also removes an intermediate copy of the bytecode created during marshalling. Next steps will be removing the intermediate bytes object created ...

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

X: @github

direct link

Domain: github.com

route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:e281e44b-90c5-53bd-440e-afc302a4c73b
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id868A:34359D:797B3:AC57E:696A0C62
html-safe-nonce881c74f896d2129eee6040c3a198d99e066b195295760f53118ff0726142b1ef
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4NjhBOjM0MzU5RDo3OTdCMzpBQzU3RTo2OTZBMEM2MiIsInZpc2l0b3JfaWQiOiI1NjMwOTQ0NzkyNDc2NzgxNjY2IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac83a8092378e729f91db2e7b517294cdebcdce24e4a1aca048bd54a8d93a3fa9d
hovercard-subject-tagpull_request:1125268149
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///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/python/cpython/pull/99555/files
twitter:imagehttps://avatars.githubusercontent.com/u/40968415?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/40968415?s=400&v=4
og:image:altThis shrinks the size of .pyc files by about 25%. It also removes an intermediate copy of the bytecode created during marshalling. Next steps will be removing the intermediate bytes object created ...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None699227a00bbb7fe1eec276d2ae1c3a93068bc5ba483bd9dc4b2a27a8f4f2f595
turbo-cache-controlno-preview
diff-viewunified
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 full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release7266b2d935baa1c6474b16dd9feaa5ca30607261
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/python/cpython/pull/99555/files#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F99555%2Ffiles
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%2F99555%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
Reloadhttps://github.com/python/cpython/pull/99555/files
Reloadhttps://github.com/python/cpython/pull/99555/files
Reloadhttps://github.com/python/cpython/pull/99555/files
python https://github.com/python
cpythonhttps://github.com/python/cpython
Please reload this pagehttps://github.com/python/cpython/pull/99555/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 pagehttps://github.com/python/cpython/pull/99555/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 servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fpython%2Fcpython%2Fissues%2Fnew%2Fchoose
brandtbucherhttps://github.com/brandtbucher
python:mainhttps://github.com/python/cpython/tree/main
brandtbucher:compressed-bytecodehttps://github.com/brandtbucher/cpython/tree/compressed-bytecode
Conversation 18 https://github.com/python/cpython/pull/99555
Commits 9 https://github.com/python/cpython/pull/99555/commits
Checks 0 https://github.com/python/cpython/pull/99555/checks
Files changed https://github.com/python/cpython/pull/99555/files
Please reload this pagehttps://github.com/python/cpython/pull/99555/files
GH-99554: marshal bytecode more efficiently https://github.com/python/cpython/pull/99555/files#top
Show all changes 9 commits https://github.com/python/cpython/pull/99555/files
4034318 Compress marshalled bytecode brandtbucher Nov 15, 2022 https://github.com/python/cpython/pull/99555/commits/4034318ba7d588f591f2b2bea28ed9ed9653bc6f
8b6b393 blurb add brandtbucher Nov 16, 2022 https://github.com/python/cpython/pull/99555/commits/8b6b393bace3768f8311ae8ffeaa494fe89492a1
5f81b82 Add opcode_for_build brandtbucher Nov 16, 2022 https://github.com/python/cpython/pull/99555/commits/5f81b82cc2d00a567389c8e83ae1104906a80fc5
e34c460 Catch up with main brandtbucher Dec 15, 2022 https://github.com/python/cpython/pull/99555/commits/e34c460f140d3f061ecdcfafe654225bf3b2c44d
23ba802 fixup brandtbucher Dec 15, 2022 https://github.com/python/cpython/pull/99555/commits/23ba802a35d64907f293b4fb0c98b8c20d673b5e
6ed83af Catch up with main brandtbucher Dec 17, 2022 https://github.com/python/cpython/pull/99555/commits/6ed83af49b66077e90243f06246c9e92605c171c
5534112 Address review comments brandtbucher Dec 17, 2022 https://github.com/python/cpython/pull/99555/commits/5534112bb0d20ef4c1c6a773efef94245350cd74
ead8f26 Catch up with main brandtbucher Dec 17, 2022 https://github.com/python/cpython/pull/99555/commits/ead8f26634387c6cd4b99678419a8055b65fac94
bcd7980 Terminate the compressed bytecode with two zeros brandtbucher Dec 18, 2022 https://github.com/python/cpython/pull/99555/commits/bcd798058296083c29ff46ae52af3b569c7b44d4
Clear filters https://github.com/python/cpython/pull/99555/files
Please reload this pagehttps://github.com/python/cpython/pull/99555/files
Please reload this pagehttps://github.com/python/cpython/pull/99555/files
_bootstrap_external.py https://github.com/python/cpython/pull/99555/files#diff-efefe383b3a81d16150c280db0b64eed7569254299418f64cc0d749f8e16f3a4
opcode.py https://github.com/python/cpython/pull/99555/files#diff-7681b13de881a13601ca56b73d052d032be48da4256df4f2f09e0474b0c1cbeb
2022-11-16-05-37-32.gh-issue-99554.4sJH79.rst https://github.com/python/cpython/pull/99555/files#diff-a4b63143f87760b477768c30ca54a5c78a598ec797245ce1b1e4594459f04397
test_frozenmain.h https://github.com/python/cpython/pull/99555/files#diff-dcbbf153f77c69fb3a08746516bb9baaf46b9465c941221d1d495123e92cc862
marshal.c https://github.com/python/cpython/pull/99555/files#diff-46d545a32ea7176926cf1a963f25cdac2cf1c8098b3e020ccc77b63b2149d760
deepfreeze.py https://github.com/python/cpython/pull/99555/files#diff-73f4b555c2a84258ef26f0976ce1fd41983aa2d0aa5107e2d3f7eac9ab6cf9cb
opcode_for_build.py https://github.com/python/cpython/pull/99555/files#diff-f021818498107b647999c848b76dc332ddce3c2aa41297cbc0c07417e7f246e9
umarshal.py https://github.com/python/cpython/pull/99555/files#diff-992841e6d40ef60d0993fe9d591cebaeb44cd9b9f23929c9e8e78e717851579c
https://github.com/python/cpython/blob/main/.github/CODEOWNERS#L260
Lib/importlib/_bootstrap_external.pyhttps://github.com/python/cpython/pull/99555/files#diff-efefe383b3a81d16150c280db0b64eed7569254299418f64cc0d749f8e16f3a4
View file https://github.com/brandtbucher/cpython/blob/bcd798058296083c29ff46ae52af3b569c7b44d4/Lib/importlib/_bootstrap_external.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/99555/{{ revealButtonHref }}
https://github.com/python/cpython/pull/99555/files#diff-efefe383b3a81d16150c280db0b64eed7569254299418f64cc0d749f8e16f3a4
https://github.com/python/cpython/pull/99555/files#diff-efefe383b3a81d16150c280db0b64eed7569254299418f64cc0d749f8e16f3a4
https://github.com/python/cpython/pull/99555/files#diff-efefe383b3a81d16150c280db0b64eed7569254299418f64cc0d749f8e16f3a4
Lib/opcode.pyhttps://github.com/python/cpython/pull/99555/files#diff-7681b13de881a13601ca56b73d052d032be48da4256df4f2f09e0474b0c1cbeb
View file https://github.com/brandtbucher/cpython/blob/bcd798058296083c29ff46ae52af3b569c7b44d4/Lib/opcode.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/99555/{{ revealButtonHref }}
https://github.com/python/cpython/pull/99555/files#diff-7681b13de881a13601ca56b73d052d032be48da4256df4f2f09e0474b0c1cbeb
https://github.com/python/cpython/pull/99555/files#diff-7681b13de881a13601ca56b73d052d032be48da4256df4f2f09e0474b0c1cbeb
Misc/NEWS.d/next/Library/2022-11-16-05-37-32.gh-issue-99554.4sJH79.rsthttps://github.com/python/cpython/pull/99555/files#diff-a4b63143f87760b477768c30ca54a5c78a598ec797245ce1b1e4594459f04397
View file https://github.com/brandtbucher/cpython/blob/bcd798058296083c29ff46ae52af3b569c7b44d4/Misc/NEWS.d/next/Library/2022-11-16-05-37-32.gh-issue-99554.4sJH79.rst
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/99555/{{ revealButtonHref }}
https://github.com/python/cpython/blob/main/.github/CODEOWNERS#L263
Programs/test_frozenmain.hhttps://github.com/python/cpython/pull/99555/files#diff-dcbbf153f77c69fb3a08746516bb9baaf46b9465c941221d1d495123e92cc862
View file https://github.com/brandtbucher/cpython/blob/bcd798058296083c29ff46ae52af3b569c7b44d4/Programs/test_frozenmain.h
Open in desktop https://desktop.github.com
how customized files appear on GitHubhttps://docs.github.com/github/administering-a-repository/customizing-how-changed-files-appear-on-github
Please reload this pagehttps://github.com/python/cpython/pull/99555/files
Python/marshal.chttps://github.com/python/cpython/pull/99555/files#diff-46d545a32ea7176926cf1a963f25cdac2cf1c8098b3e020ccc77b63b2149d760
View file https://github.com/brandtbucher/cpython/blob/bcd798058296083c29ff46ae52af3b569c7b44d4/Python/marshal.c
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/99555/{{ revealButtonHref }}
https://github.com/python/cpython/pull/99555/files#diff-46d545a32ea7176926cf1a963f25cdac2cf1c8098b3e020ccc77b63b2149d760
https://github.com/python/cpython/pull/99555/files#diff-46d545a32ea7176926cf1a963f25cdac2cf1c8098b3e020ccc77b63b2149d760
https://github.com/python/cpython/pull/99555/files#diff-46d545a32ea7176926cf1a963f25cdac2cf1c8098b3e020ccc77b63b2149d760
gvanrossumhttps://github.com/gvanrossum
Dec 27, 2022https://github.com/python/cpython/pull/99555/files#r1057841035
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/cpython/pull/99555/files
https://github.com/python/cpython/pull/99555/files#diff-46d545a32ea7176926cf1a963f25cdac2cf1c8098b3e020ccc77b63b2149d760
https://github.com/python/cpython/pull/99555/files#diff-46d545a32ea7176926cf1a963f25cdac2cf1c8098b3e020ccc77b63b2149d760
https://github.com/python/cpython/pull/99555/files#diff-46d545a32ea7176926cf1a963f25cdac2cf1c8098b3e020ccc77b63b2149d760
https://github.com/python/cpython/pull/99555/files#diff-46d545a32ea7176926cf1a963f25cdac2cf1c8098b3e020ccc77b63b2149d760
https://github.com/python/cpython/pull/99555/files#diff-46d545a32ea7176926cf1a963f25cdac2cf1c8098b3e020ccc77b63b2149d760
https://github.com/python/cpython/pull/99555/files#diff-46d545a32ea7176926cf1a963f25cdac2cf1c8098b3e020ccc77b63b2149d760
https://github.com/python/cpython/pull/99555/files#diff-46d545a32ea7176926cf1a963f25cdac2cf1c8098b3e020ccc77b63b2149d760
https://github.com/python/cpython/pull/99555/files#diff-46d545a32ea7176926cf1a963f25cdac2cf1c8098b3e020ccc77b63b2149d760
https://github.com/python/cpython/blob/main/.github/CODEOWNERS#L262
Tools/build/deepfreeze.pyhttps://github.com/python/cpython/pull/99555/files#diff-73f4b555c2a84258ef26f0976ce1fd41983aa2d0aa5107e2d3f7eac9ab6cf9cb
View file https://github.com/brandtbucher/cpython/blob/bcd798058296083c29ff46ae52af3b569c7b44d4/Tools/build/deepfreeze.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/99555/{{ revealButtonHref }}
https://github.com/python/cpython/pull/99555/files#diff-73f4b555c2a84258ef26f0976ce1fd41983aa2d0aa5107e2d3f7eac9ab6cf9cb
https://github.com/python/cpython/pull/99555/files#diff-73f4b555c2a84258ef26f0976ce1fd41983aa2d0aa5107e2d3f7eac9ab6cf9cb
Tools/build/opcode_for_build.pyhttps://github.com/python/cpython/pull/99555/files#diff-f021818498107b647999c848b76dc332ddce3c2aa41297cbc0c07417e7f246e9
View file https://github.com/brandtbucher/cpython/blob/bcd798058296083c29ff46ae52af3b569c7b44d4/Tools/build/opcode_for_build.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/99555/{{ revealButtonHref }}
Tools/build/umarshal.pyhttps://github.com/python/cpython/pull/99555/files#diff-992841e6d40ef60d0993fe9d591cebaeb44cd9b9f23929c9e8e78e717851579c
View file https://github.com/brandtbucher/cpython/blob/bcd798058296083c29ff46ae52af3b569c7b44d4/Tools/build/umarshal.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/99555/{{ revealButtonHref }}
https://github.com/python/cpython/pull/99555/files#diff-992841e6d40ef60d0993fe9d591cebaeb44cd9b9f23929c9e8e78e717851579c
https://github.com/python/cpython/pull/99555/files#diff-992841e6d40ef60d0993fe9d591cebaeb44cd9b9f23929c9e8e78e717851579c
https://github.com/python/cpython/pull/99555/files#diff-992841e6d40ef60d0993fe9d591cebaeb44cd9b9f23929c9e8e78e717851579c
https://github.com/python/cpython/pull/99555/files#diff-992841e6d40ef60d0993fe9d591cebaeb44cd9b9f23929c9e8e78e717851579c
https://github.com/python/cpython/pull/99555/files#diff-992841e6d40ef60d0993fe9d591cebaeb44cd9b9f23929c9e8e78e717851579c
https://github.com/python/cpython/pull/99555/files#diff-992841e6d40ef60d0993fe9d591cebaeb44cd9b9f23929c9e8e78e717851579c
https://github.com/python/cpython/pull/99555/files#diff-992841e6d40ef60d0993fe9d591cebaeb44cd9b9f23929c9e8e78e717851579c
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.