| react-profiling | 0 |
| react-import-map | react,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/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:2fe61270-27cb-465f-3c27-845abca9e52e |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | 8FB2:2D40DE:374C301:465BE26:6B022CDC |
| html-safe-nonce | dc6eb7f56411d9554975a7e571a0168a90089c773e975e1a1af94e645c05d90b |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4RkIyOjJENDBERTozNzRDMzAxOjQ2NUJFMjY6NkIwMjJDREMiLCJ2aXNpdG9yX2lkIjoiNjUzMTIyNTg5Njg3NDAyODI1MiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 5f309f7b304604b58164a39d49dd7fd75b30626d0b31e93964184a6ed077edf2 |
| hovercard-subject-tag | pull_request:3548234581 |
| 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/148707/files |
| twitter:image | https://avatars.githubusercontent.com/u/85053?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/85053?s=400&v=4 |
| og:image:alt | 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... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456 |
| 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 | 423dbb54c5e7bfecc838eb387c1435eb3d0e760d |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| Skip to content | https://github.com/python/cpython/pull/148707/files#start-of-content |
| https://github.com/ |
| Sign in | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F148707%2Ffiles |
| GitHubRepository hosting, code review, and collaboration | https://github.com/platform |
| CopilotAI coding agent for tasks, projects, and automated work | https://github.com/features/copilot |
| ActionsCI/CD and automation | https://github.com/features/actions |
| Code QualityQuality analysis, fixes, and enforcement | https://github.com/features/code-quality |
| CodespacesCloud development environments | https://github.com/features/codespaces |
| Code SecurityVulnerability detection and remediation | https://github.com/security/advanced-security/code-security |
| Secret ProtectionSecret scanning and leak prevention | https://github.com/security/advanced-security/secret-protection |
| All Features | https://github.com/features |
| Documentation | https://docs.github.com/en |
| Training | https://learn.github.com/skills |
| Certifications | https://learn.github.com/credentials |
| Build with Copilot | https://github.com/features/ai |
| Customize Copilot | https://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview |
| Integrations | https://github.com/marketplace |
| Trending repos | https://github.com/trending |
| GitHub Sponsors | https://github.com/open-source/sponsors |
| Developer articles | https://github.com/resources/articles |
| ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place. | https://github.blog/changelog/ |
| Enterprises | https://github.com/enterprise |
| Team | https://github.com/team |
| Startups | https://github.com/enterprise/startups |
| Nonprofits | https://github.com/solutions/industry/nonprofits |
| 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 |
| See all industries | https://github.com/solutions/industry |
| Why GitHub | https://github.com/why-github |
| Customer Stories | https://github.com/customer-stories |
| Business insights | https://github.com/solutions/executive-insights |
| Trust Center | https://github.com/trust-center |
| GitHub Advanced SecurityEnterprise-grade code security | 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/enterprise/premium-support |
| Documentation | https://docs.github.com/en |
| Resource center | https://github.com/resources |
| Blog | https://github.blog/ |
| Events & webinars | https://github.com/resources/events |
| Community Forum | https://github.com/orgs/community/discussions |
| Customer Stories | https://github.com/customer-stories |
| Integrations | https://github.com/marketplace |
| Customer support | https://help.github.com/ |
| Training | https://learn.github.com/skills |
| GitHub Status | https://www.githubstatus.com/ |
| About | https://github.com/about |
| Partners | https://github.com/partners |
| Changelog | https://github.blog/changelog/ |
| GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub. | https://githubuniverse.com/ |
| Pricing | https://github.com/pricing |
| Sign in | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F148707%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/148707/files |
| Reload | https://github.com/python/cpython/pull/148707/files |
| Reload | https://github.com/python/cpython/pull/148707/files |
| python | https://github.com/python |
| cpython | https://github.com/python/cpython |
| Code | https://github.com/python/cpython |
| Issues5k+ (5k+) | https://github.com/python/cpython/issues |
| Pull requests2.4k (2.4k) | https://github.com/python/cpython/pulls |
| Actions | https://github.com/python/cpython/actions |
| Projects | https://github.com/python/cpython/projects |
| Security and quality | https://github.com/python/cpython/security |
| Insights | https://github.com/python/cpython/insights |
| 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 |
| mjbommar | https://github.com/mjbommar |
| python:main | https://github.com/python/cpython/tree/main |
| mjbommar:exp-pickle/4-pure-python-exact-containers | https://github.com/mjbommar/cpython/tree/exp-pickle/4-pure-python-exact-containers |
|
Conversation
2
| https://github.com/python/cpython/pull/148707 |
|
Commits
9
| https://github.com/python/cpython/pull/148707/commits |
|
Checks
51
| https://github.com/python/cpython/pull/148707/checks |
|
Files changed
| https://github.com/python/cpython/pull/148707/files |
| Please reload this page | https://github.com/python/cpython/pull/148707/files |
|
gh-148706: Pure-Python pickle._Pickler can be significantly optimized
| https://github.com/python/cpython/pull/148707/files#top |
|
Show all changes
9 commits
| https://github.com/python/cpython/pull/148707/files |
|
94b53eb
pickle: add exact-container fast paths to pure-Python _batch_appends …
mjbommar Apr 17, 2026
| https://github.com/python/cpython/pull/148707/commits/94b53eb9186cd06ecd111c81ed90dbf038d20e0d |
|
bb9d721
pickle: inline frame-check and short-circuit common atomic types in s…
mjbommar Apr 17, 2026
| https://github.com/python/cpython/pull/148707/commits/bb9d72199059850b3d5ef84f1a2e67865031b67c |
|
69eed04
pickle: add Misc/pickle-perf-diary.md + raw bench data
mjbommar Apr 17, 2026
| https://github.com/python/cpython/pull/148707/commits/69eed0405f8f6ec09dfcb51ee9833ae891803ea8 |
|
285fcae
pickle: fix large-dict mutation semantics; reorder save() fast paths …
mjbommar Apr 17, 2026
| https://github.com/python/cpython/pull/148707/commits/285fcae806098fae487209af60d41d4c937de714 |
|
7c6af84
pickle: cache BININT1 opcode bytes for n in 0..255 (F4)
mjbommar Apr 17, 2026
| https://github.com/python/cpython/pull/148707/commits/7c6af84626238d257914ff90b65c8923f6c6e33b |
|
2f1d38b
pickle: inline the MEMOIZE proto-4+ path in memoize() (F2)
mjbommar Apr 17, 2026
| https://github.com/python/cpython/pull/148707/commits/2f1d38b12c01cb2067b7662745afde33a686db11 |
|
e917108
pickle: extend save() fast path to bytes (F6)
mjbommar Apr 17, 2026
| https://github.com/python/cpython/pull/148707/commits/e917108ace45f92c3ce80d0ad4907bbd22f56fe7 |
|
024a57c
pickle: update perf diary for round 2 (F1-F6) + raw data
mjbommar Apr 17, 2026
| https://github.com/python/cpython/pull/148707/commits/024a57c44d702d2bd86081a988420f053feb3d41 |
|
4f0b43c
gh-148706: add NEWS entry for pickle._Pickler optimization
mjbommar Apr 18, 2026
| https://github.com/python/cpython/pull/148707/commits/4f0b43c2b6b47317cba7cf86f492791727031b72 |
|
Clear filters
| https://github.com/python/cpython/pull/148707/files |
| Please reload this page | https://github.com/python/cpython/pull/148707/files |
| Please reload this page | https://github.com/python/cpython/pull/148707/files |
|
pickle.py
| https://github.com/python/cpython/pull/148707/files#diff-0e6904a03cced1cde99717e889a6a20715fd002d7186a64e77477c2d99c32a47 |
|
2026-04-18-00-28-38.gh-issue-148706.mvlqm5.rst
| https://github.com/python/cpython/pull/148707/files#diff-a04099b03bef28d5ff5de87f70df06d07db4bed80cb01471979f837b26421fcc |
|
README.md
| https://github.com/python/cpython/pull/148707/files#diff-d009bbe04d378e7ef179459760277243f44f0b4f96bd5a6362b0a70021a533aa |
|
pickle-F1v2.json
| https://github.com/python/cpython/pull/148707/files#diff-5e405aa7ae46fc2623e5d96d488dfa827ef4d704cfd346b838fa9344a7b11a4b |
|
pickle-F2.json
| https://github.com/python/cpython/pull/148707/files#diff-f7f45632633bb82fa0a7b67f2cf433980d463aef18856a7832849f7ffdce1e31 |
|
pickle-F3.json
| https://github.com/python/cpython/pull/148707/files#diff-1f80dca7da5f01aad1477ca693f42a75c2953aba680199493251d6281860e7ab |
|
pickle-F4.json
| https://github.com/python/cpython/pull/148707/files#diff-cb134e02bf3e2f30066488aa5c1a312c1f9c4ef698a92fb2be82a0cb352d4e30 |
|
pickle-F5.json
| https://github.com/python/cpython/pull/148707/files#diff-a299ccc09115f3a422f618d10ad9e0221405b92db925588f9eaa30be3efaca38 |
|
pickle-F6v2.json
| https://github.com/python/cpython/pull/148707/files#diff-bd28d069d71513c70d8f45353bdcc426b672a3f10fa11c25efeb30c82bd5562f |
|
pickle-bytes-F6v2.json
| https://github.com/python/cpython/pull/148707/files#diff-0ac2b6ff67f16f6e98b95a0b5fc4cf1acdca484efb57e451948adc11dcfe3e74 |
|
pickle-bytes-pre.json
| https://github.com/python/cpython/pull/148707/files#diff-c31e4154ad86b8a4952abeb69e4a39ead493df00087e177670f2e057ec878ae4 |
|
pickle-post-fix.json
| https://github.com/python/cpython/pull/148707/files#diff-b7560d797daaaa6b0f99c54e850ab211c83278e8b499580db92ae606466ff545 |
|
pickle-pure-BD.json
| https://github.com/python/cpython/pull/148707/files#diff-d5289670b264cdbe84e8813b6245db49c66bb31ebe4f64cea3b4bc547f4c4ef5 |
|
pickle-pure-DE-v2.json
| https://github.com/python/cpython/pull/148707/files#diff-732e9f46293828de47c19468644ecd52229587f601620cbfc21830cd6490de75 |
|
pickle-pure-DE.json
| https://github.com/python/cpython/pull/148707/files#diff-e2c4a22acbb4c0efcd4e0e4a5262d0248c3849f9eb4b10d9a2d57a81f1549768 |
|
pickle-pure-Donly-verify.json
| https://github.com/python/cpython/pull/148707/files#diff-caacc53afdb64e5d1c6b81c4b80cb9513885778bec6aaabc6de201532bb8c114 |
|
pickle-pure-baseline.json
| https://github.com/python/cpython/pull/148707/files#diff-7699797f0f8b35f9ae77e44c397b358b408ddafbd24242532d655667e4ac250c |
|
pickle-pure-exp4d.json
| https://github.com/python/cpython/pull/148707/files#diff-d9098a91c8e500adc1f516e8e79e191901525f2cd2a8616286b932d4e960e84c |
|
pickle_pure_bench.py
| https://github.com/python/cpython/pull/148707/files#diff-137cfdbf3a011a2684402a77ab114d755c8b6e847cd2b6cd2d100e22c4d4c35b |
|
pickle_pure_bench_bytes.py
| https://github.com/python/cpython/pull/148707/files#diff-6c4d8afb76b64062c5a7b78d19d8a7127944f49a9b0a837e95d9cd362d3a4947 |
|
pickle_save_profile.py
| https://github.com/python/cpython/pull/148707/files#diff-db928fba49b0b2b38e772071882db4e71eb45306ae9f61e00cdb2a3d1fca3380 |
|
pickle-perf-diary.md
| https://github.com/python/cpython/pull/148707/files#diff-d4b1d6bf3081a77619f97e3e1808fafa602a611e3178f2ccd1c9222f2ca26155 |
| Lib/pickle.py | https://github.com/python/cpython/pull/148707/files#diff-0e6904a03cced1cde99717e889a6a20715fd002d7186a64e77477c2d99c32a47 |
|
View file
| https://github.com/mjbommar/cpython/blob/4f0b43c2b6b47317cba7cf86f492791727031b72/Lib/pickle.py |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/python/cpython/pull/148707/{{ revealButtonHref }} |
|
| https://github.com/python/cpython/pull/148707/files#diff-0e6904a03cced1cde99717e889a6a20715fd002d7186a64e77477c2d99c32a47 |
|
| https://github.com/python/cpython/pull/148707/files#diff-0e6904a03cced1cde99717e889a6a20715fd002d7186a64e77477c2d99c32a47 |
|
| https://github.com/python/cpython/pull/148707/files#diff-0e6904a03cced1cde99717e889a6a20715fd002d7186a64e77477c2d99c32a47 |
|
| https://github.com/python/cpython/pull/148707/files#diff-0e6904a03cced1cde99717e889a6a20715fd002d7186a64e77477c2d99c32a47 |
|
| https://github.com/python/cpython/pull/148707/files#diff-0e6904a03cced1cde99717e889a6a20715fd002d7186a64e77477c2d99c32a47 |
|
| https://github.com/python/cpython/pull/148707/files#diff-0e6904a03cced1cde99717e889a6a20715fd002d7186a64e77477c2d99c32a47 |
|
| https://github.com/python/cpython/pull/148707/files#diff-0e6904a03cced1cde99717e889a6a20715fd002d7186a64e77477c2d99c32a47 |
|
| https://github.com/python/cpython/pull/148707/files#diff-0e6904a03cced1cde99717e889a6a20715fd002d7186a64e77477c2d99c32a47 |
|
| https://github.com/python/cpython/pull/148707/files#diff-0e6904a03cced1cde99717e889a6a20715fd002d7186a64e77477c2d99c32a47 |
|
| https://github.com/python/cpython/pull/148707/files#diff-0e6904a03cced1cde99717e889a6a20715fd002d7186a64e77477c2d99c32a47 |
|
| https://github.com/python/cpython/pull/148707/files#diff-0e6904a03cced1cde99717e889a6a20715fd002d7186a64e77477c2d99c32a47 |
|
| https://github.com/python/cpython/pull/148707/files#diff-0e6904a03cced1cde99717e889a6a20715fd002d7186a64e77477c2d99c32a47 |
|
| https://github.com/python/cpython/pull/148707/files#diff-0e6904a03cced1cde99717e889a6a20715fd002d7186a64e77477c2d99c32a47 |
| Misc/NEWS.d/next/Library/2026-04-18-00-28-38.gh-issue-148706.mvlqm5.rst | https://github.com/python/cpython/pull/148707/files#diff-a04099b03bef28d5ff5de87f70df06d07db4bed80cb01471979f837b26421fcc |
|
View file
| https://github.com/mjbommar/cpython/blob/4f0b43c2b6b47317cba7cf86f492791727031b72/Misc/NEWS.d/next/Library/2026-04-18-00-28-38.gh-issue-148706.mvlqm5.rst |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/python/cpython/pull/148707/{{ revealButtonHref }} |
| Misc/pickle-perf-data/README.md | https://github.com/python/cpython/pull/148707/files#diff-d009bbe04d378e7ef179459760277243f44f0b4f96bd5a6362b0a70021a533aa |
|
View file
| https://github.com/mjbommar/cpython/blob/4f0b43c2b6b47317cba7cf86f492791727031b72/Misc/pickle-perf-data/README.md |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/python/cpython/pull/148707/{{ revealButtonHref }} |
| Please reload this page | https://github.com/python/cpython/pull/148707/files |
| Please reload this page | https://github.com/python/cpython/pull/148707/files |
|
| 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 |