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/_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:cd4839ec-bccd-6c8f-8f97-948d00ee0ef7
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id966A:22D89E:53A34:6ED67:6B0222D2
html-safe-noncee95cff77c52a5b725d85943b422acc3bb27092b172881e39a1f8ff45fc1994b0
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5NjZBOjIyRDg5RTo1M0EzNDo2RUQ2Nzo2QjAyMjJEMiIsInZpc2l0b3JfaWQiOiI3MDQ5ODM2MjA1NjU5MjY3Nzk0IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmacf19c13124bc15658ceb1a750777c11333bb353dc06d1e4373bca685ebad64959
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///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/148707/pull_request_layout
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#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F148707
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
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%2Fpull_requests_fragments%2Fpull_request_layout&source=header-repo&source_repo=python%2Fcpython
Reloadhttps://github.com/python/cpython/pull/148707
Reloadhttps://github.com/python/cpython/pull/148707
Reloadhttps://github.com/python/cpython/pull/148707
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#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
https://github.com/mjbommar
mjbommarhttps://github.com/mjbommar
Apr 18, 2026https://github.com/python/cpython/pull/148707#issue-4286138364
Please reload this pagehttps://github.com/python/cpython/pull/148707
#148706https://github.com/python/cpython/issues/148706
Pure-Python pickle._Pickler can be significantly optimized #148706https://github.com/python/cpython/issues/148706
Please reload this pagehttps://github.com/python/cpython/pull/148707
mjbommarhttps://github.com/mjbommar
April 17, 2026 15:54https://github.com/python/cpython/pull/148707#commits-pushed-94b53eb
https://github.com/mjbommar
pickle: add exact-container fast paths to pure-Python _batch_appends …https://github.com/python/cpython/pull/148707/commits/94b53eb9186cd06ecd111c81ed90dbf038d20e0d
94b53ebhttps://github.com/python/cpython/pull/148707/commits/94b53eb9186cd06ecd111c81ed90dbf038d20e0d
https://github.com/mjbommar
https://github.com/claude
pickle: inline frame-check and short-circuit common atomic types in s…https://github.com/python/cpython/pull/148707/commits/bb9d72199059850b3d5ef84f1a2e67865031b67c
bb9d721https://github.com/python/cpython/pull/148707/commits/bb9d72199059850b3d5ef84f1a2e67865031b67c
https://github.com/mjbommar
https://github.com/claude
pickle: add Misc/pickle-perf-diary.md + raw bench datahttps://github.com/python/cpython/pull/148707/commits/69eed0405f8f6ec09dfcb51ee9833ae891803ea8
69eed04https://github.com/python/cpython/pull/148707/commits/69eed0405f8f6ec09dfcb51ee9833ae891803ea8
https://github.com/mjbommar
https://github.com/claude
pickle: fix large-dict mutation semantics; reorder save() fast paths …https://github.com/python/cpython/pull/148707/commits/285fcae806098fae487209af60d41d4c937de714
285fcaehttps://github.com/python/cpython/pull/148707/commits/285fcae806098fae487209af60d41d4c937de714
https://github.com/mjbommar
https://github.com/claude
pickle: cache BININT1 opcode bytes for n in 0..255 (F4)https://github.com/python/cpython/pull/148707/commits/7c6af84626238d257914ff90b65c8923f6c6e33b
7c6af84https://github.com/python/cpython/pull/148707/commits/7c6af84626238d257914ff90b65c8923f6c6e33b
https://github.com/mjbommar
https://github.com/claude
pickle: inline the MEMOIZE proto-4+ path in memoize() (F2)https://github.com/python/cpython/pull/148707/commits/2f1d38b12c01cb2067b7662745afde33a686db11
2f1d38bhttps://github.com/python/cpython/pull/148707/commits/2f1d38b12c01cb2067b7662745afde33a686db11
https://github.com/mjbommar
https://github.com/claude
pickle: extend save() fast path to bytes (F6)https://github.com/python/cpython/pull/148707/commits/e917108ace45f92c3ce80d0ad4907bbd22f56fe7
e917108https://github.com/python/cpython/pull/148707/commits/e917108ace45f92c3ce80d0ad4907bbd22f56fe7
https://github.com/mjbommar
https://github.com/claude
pickle: update perf diary for round 2 (F1-F6) + raw datahttps://github.com/python/cpython/pull/148707/commits/024a57c44d702d2bd86081a988420f053feb3d41
024a57chttps://github.com/python/cpython/pull/148707/commits/024a57c44d702d2bd86081a988420f053feb3d41
https://github.com/mjbommar
pythongh-148706https://github.com/python/cpython/issues/148706
: add NEWS entry for pickle._Pickler optimizationhttps://github.com/python/cpython/pull/148707/commits/4f0b43c2b6b47317cba7cf86f492791727031b72
4f0b43chttps://github.com/python/cpython/pull/148707/commits/4f0b43c2b6b47317cba7cf86f492791727031b72
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
awaiting review https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20review%22
Apr 18, 2026https://github.com/python/cpython/pull/148707#event-24628355181
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
Apr 18, 2026 https://github.com/python/cpython/pull/148707#ref-issue-4286054080
Pure-Python pickle._Pickler can be significantly optimized #148706 https://github.com/python/cpython/issues/148706
https://github.com/sergey-miryanov
sergey-miryanovhttps://github.com/sergey-miryanov
Apr 18, 2026https://github.com/python/cpython/pull/148707#issuecomment-4273193803
@serhiy-storchakahttps://github.com/serhiy-storchaka
Please reload this pagehttps://github.com/python/cpython/pull/148707
https://github.com/Wulian233
Wulian233https://github.com/Wulian233
Apr 18, 2026https://github.com/python/cpython/pull/148707#issuecomment-4273403610
Please reload this pagehttps://github.com/python/cpython/pull/148707
https://github.com/picnixz
picnixzhttps://github.com/picnixz
DO-NOT-MERGE https://github.com/python/cpython/issues?q=state%3Aopen%20label%3ADO-NOT-MERGE
Apr 21, 2026https://github.com/python/cpython/pull/148707#event-24715772053
https://github.com/picnixz
picnixzhttps://github.com/picnixz
Apr 21, 2026https://github.com/python/cpython/pull/148707#event-24718519640
https://github.co/hiddenchars
https://github.com/python/cpython/pull/{{ revealButtonHref }}
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%2F148707
Please reload this pagehttps://github.com/python/cpython/pull/148707
awaiting review https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20review%22
DO-NOT-MERGE https://github.com/python/cpython/issues?q=state%3Aopen%20label%3ADO-NOT-MERGE
Please reload this pagehttps://github.com/python/cpython/pull/148707
https://github.com/mjbommar
https://github.com/sergey-miryanov
https://github.com/Wulian233
https://github.com/picnixz
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.