René's URL Explorer Experiment


Title: gh-148706: Pure-Python pickle._Pickler can be significantly optimized by mjbommar · Pull Request #148707 · python/cpython · GitHub

Open Graph Title: gh-148706: Pure-Python pickle._Pickler can be significantly optimized by mjbommar · Pull Request #148707 · python/cpython

X Title: gh-148706: Pure-Python pickle._Pickler can be significantly optimized by mjbommar · Pull Request #148707 · python/cpython

Description: The Python programming language. Contribute to python/cpython development by creating an account on GitHub.

Open Graph Description: As discussed in #148706 , packages like dill can be made ~20-40% faster by optimizing various paths in the pure Python pickler that they subclass. Note: I included a number of experiment logs and m...

X Description: As discussed in #148706 , packages like dill can be made ~20-40% faster by optimizing various paths in the pure Python pickler that they subclass. Note: I included a number of experiment logs and m...

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

X: @github

direct link

Domain: github.com

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/:user_id/:repository/pull/:id/commits(.:format)
route-controllerpull_requests
route-actioncommits
fetch-noncev2:33a0cab6-3799-ede4-f124-604410dbaa29
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idD60A:1DC4CC:1C663E8:25AEFBF:6B022D12
html-safe-nonce3b60fc9e1e4c9e02792619471f2f1f8bd9a660a937c35f54e1346b772cc8bf7d
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJENjBBOjFEQzRDQzoxQzY2M0U4OjI1QUVGQkY6NkIwMjJEMTIiLCJ2aXNpdG9yX2lkIjoiNzE2OTg4MDQ1MTM4ODE1NzIwMyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmacfc6cddaa7262f29a8def5e2741c4105fe9740158f9a296f90bc77d3ab32c4e99
hovercard-subject-tagpull_request:3548234581
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/commits
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/python/cpython/pull/148707/commits
twitter:imagehttps://opengraph.githubassets.com/2d19b656ec27f9d9305b3ff88e54b5f3af7e4f86249ea4144e852699766d6364/python/cpython/pull/148707
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/2d19b656ec27f9d9305b3ff88e54b5f3af7e4f86249ea4144e852699766d6364/python/cpython/pull/148707
og:image:altAs discussed in #148706 , packages like dill can be made ~20-40% faster by optimizing various paths in the pure Python pickler that they subclass. Note: I included a number of experiment logs and m...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamemjbommar
hostnamegithub.com
expected-hostnamegithub.com
None87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456
turbo-cache-controlno-cache
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-namepull-requests

Links:

Skip to contenthttps://github.com/python/cpython/pull/148707/commits#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F148707%2Fcommits
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%2Fpull%2F148707%2Fcommits
Sign uphttps://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%2Fcommits&source=header-repo&source_repo=python%2Fcpython
Reloadhttps://github.com/python/cpython/pull/148707/commits
Reloadhttps://github.com/python/cpython/pull/148707/commits
Reloadhttps://github.com/python/cpython/pull/148707/commits
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
mjbommarhttps://github.com/mjbommar
python:mainhttps://github.com/python/cpython/tree/main
mjbommar:exp-pickle/4-pure-python-exact-containershttps://github.com/mjbommar/cpython/tree/exp-pickle/4-pure-python-exact-containers
Conversationhttps://github.com/python/cpython/pull/148707
Commits9 (9)https://github.com/python/cpython/pull/148707/commits
Checkshttps://github.com/python/cpython/pull/148707/checks
Files changedhttps://github.com/python/cpython/pull/148707/files
gh-148706: Pure-Python pickle._Pickler can be significantly optimizedhttps://github.com/python/cpython/pull/148707/commits#top
mjbommarhttps://github.com/mjbommar
python:mainhttps://github.com/python/cpython/tree/main
mjbommar:exp-pickle/4-pure-python-exact-containershttps://github.com/mjbommar/cpython/tree/exp-pickle/4-pure-python-exact-containers
pickle: add exact-container fast paths to pure-Python _batch_appends / _batch_setitemshttps://github.com/python/cpython/pull/148707/commits/94b53eb9186cd06ecd111c81ed90dbf038d20e0d
https://github.com/mjbommar
mjbommarhttps://github.com/python/cpython/commits?author=mjbommar
94b53ebhttps://github.com/python/cpython/pull/148707/commits/94b53eb9186cd06ecd111c81ed90dbf038d20e0d
https://github.com/python/cpython/tree/94b53eb9186cd06ecd111c81ed90dbf038d20e0d
pickle: inline frame-check and short-circuit common atomic types in save()https://github.com/python/cpython/pull/148707/commits/bb9d72199059850b3d5ef84f1a2e67865031b67c
mjbommarhttps://github.com/python/cpython/commits?author=mjbommar
claudehttps://github.com/python/cpython/commits?author=claude
bb9d721https://github.com/python/cpython/pull/148707/commits/bb9d72199059850b3d5ef84f1a2e67865031b67c
https://github.com/python/cpython/tree/bb9d72199059850b3d5ef84f1a2e67865031b67c
pickle: add Misc/pickle-perf-diary.md + raw bench datahttps://github.com/python/cpython/pull/148707/commits/69eed0405f8f6ec09dfcb51ee9833ae891803ea8
mjbommarhttps://github.com/python/cpython/commits?author=mjbommar
claudehttps://github.com/python/cpython/commits?author=claude
69eed04https://github.com/python/cpython/pull/148707/commits/69eed0405f8f6ec09dfcb51ee9833ae891803ea8
https://github.com/python/cpython/tree/69eed0405f8f6ec09dfcb51ee9833ae891803ea8
pickle: fix large-dict mutation semantics; reorder save() fast paths (F1)https://github.com/python/cpython/pull/148707/commits/285fcae806098fae487209af60d41d4c937de714
mjbommarhttps://github.com/python/cpython/commits?author=mjbommar
claudehttps://github.com/python/cpython/commits?author=claude
285fcaehttps://github.com/python/cpython/pull/148707/commits/285fcae806098fae487209af60d41d4c937de714
https://github.com/python/cpython/tree/285fcae806098fae487209af60d41d4c937de714
pickle: cache BININT1 opcode bytes for n in 0..255 (F4)https://github.com/python/cpython/pull/148707/commits/7c6af84626238d257914ff90b65c8923f6c6e33b
mjbommarhttps://github.com/python/cpython/commits?author=mjbommar
claudehttps://github.com/python/cpython/commits?author=claude
7c6af84https://github.com/python/cpython/pull/148707/commits/7c6af84626238d257914ff90b65c8923f6c6e33b
https://github.com/python/cpython/tree/7c6af84626238d257914ff90b65c8923f6c6e33b
pickle: inline the MEMOIZE proto-4+ path in memoize() (F2)https://github.com/python/cpython/pull/148707/commits/2f1d38b12c01cb2067b7662745afde33a686db11
mjbommarhttps://github.com/python/cpython/commits?author=mjbommar
claudehttps://github.com/python/cpython/commits?author=claude
2f1d38bhttps://github.com/python/cpython/pull/148707/commits/2f1d38b12c01cb2067b7662745afde33a686db11
https://github.com/python/cpython/tree/2f1d38b12c01cb2067b7662745afde33a686db11
pickle: extend save() fast path to bytes (F6)https://github.com/python/cpython/pull/148707/commits/e917108ace45f92c3ce80d0ad4907bbd22f56fe7
mjbommarhttps://github.com/python/cpython/commits?author=mjbommar
claudehttps://github.com/python/cpython/commits?author=claude
e917108https://github.com/python/cpython/pull/148707/commits/e917108ace45f92c3ce80d0ad4907bbd22f56fe7
https://github.com/python/cpython/tree/e917108ace45f92c3ce80d0ad4907bbd22f56fe7
pickle: update perf diary for round 2 (F1-F6) + raw datahttps://github.com/python/cpython/pull/148707/commits/024a57c44d702d2bd86081a988420f053feb3d41
mjbommarhttps://github.com/python/cpython/commits?author=mjbommar
claudehttps://github.com/python/cpython/commits?author=claude
024a57chttps://github.com/python/cpython/pull/148707/commits/024a57c44d702d2bd86081a988420f053feb3d41
https://github.com/python/cpython/tree/024a57c44d702d2bd86081a988420f053feb3d41
gh-148706: add NEWS entry for pickle._Pickler optimizationhttps://github.com/python/cpython/pull/148707/commits/4f0b43c2b6b47317cba7cf86f492791727031b72
https://github.com/mjbommar
mjbommarhttps://github.com/python/cpython/commits?author=mjbommar
4f0b43chttps://github.com/python/cpython/pull/148707/commits/4f0b43c2b6b47317cba7cf86f492791727031b72
https://github.com/python/cpython/tree/4f0b43c2b6b47317cba7cf86f492791727031b72
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.