| route-pattern | /_view_fragments/voltron/pull_requests/show/:user_id/:repository/:id/pull_request_layout(.:format) |
| route-controller | voltron_pull_requests_fragments |
| route-action | pull_request_layout |
| fetch-nonce | v2:4b515df3-8142-53c5-d97e-6db41736a14a |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | AA26:3C7D7F:2EC2E7:4057AA:696A7389 |
| html-safe-nonce | fe3124c60ab8be36931aebe7b66b5a3488e253cdaf95021a03877a31b7f817f5 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBQTI2OjNDN0Q3RjoyRUMyRTc6NDA1N0FBOjY5NkE3Mzg5IiwidmlzaXRvcl9pZCI6IjExNDk1MDQ2MjM2NjgyNjE3NjkiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 2e913fc0453f4270d6b95809eeff21a6ae2a00c682aa86a559e9de46274a967d |
| hovercard-subject-tag | pull_request:1946151381 |
| 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 | ///voltron/pull_requests_fragments/pull_request_layout |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/voltron/pull_requests/show/python/cpython/121193/pull_request_layout |
| twitter:image | https://opengraph.githubassets.com/a659c7cd8a6c9baa83fcb3c4658fced70593570a32f4fc2c86fb6d1d688b842b/python/cpython/pull/121193 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/a659c7cd8a6c9baa83fcb3c4658fced70593570a32f4fc2c86fb6d1d688b842b/python/cpython/pull/121193 |
| og:image:alt | deepcopy() can be surprisingly slow when called with empty containers like lists, tuples, dicts, sets or frozensets.
This adds a fast path for this case similar to #114266 which speeds up these cas... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | lgeiger |
| hostname | github.com |
| expected-hostname | github.com |
| None | cfa223d62d272274e0b68350b4bd7741f3ca7498b8c4b8b1bc1e6deabbdbc09d |
| turbo-cache-control | no-preview |
| 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 |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 6a0b6893c221f98f607598e939299fdf5763435d |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| Skip to content | https://github.com/python/cpython/pull/121193#start-of-content |
|
| https://github.com/ |
|
Sign in
| https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F121193 |
| GitHub CopilotWrite better code with AI | https://github.com/features/copilot |
| GitHub SparkBuild and deploy intelligent apps | https://github.com/features/spark |
| GitHub ModelsManage and compare prompts | https://github.com/features/models |
| MCP RegistryNewIntegrate external tools | https://github.com/mcp |
| ActionsAutomate any workflow | https://github.com/features/actions |
| CodespacesInstant dev environments | https://github.com/features/codespaces |
| IssuesPlan and track work | https://github.com/features/issues |
| Code ReviewManage code changes | https://github.com/features/code-review |
| GitHub Advanced SecurityFind and fix vulnerabilities | https://github.com/security/advanced-security |
| Code securitySecure your code as you build | https://github.com/security/advanced-security/code-security |
| Secret protectionStop leaks before they start | https://github.com/security/advanced-security/secret-protection |
| Why GitHub | https://github.com/why-github |
| Documentation | https://docs.github.com |
| Blog | https://github.blog |
| Changelog | https://github.blog/changelog |
| Marketplace | https://github.com/marketplace |
| View all features | https://github.com/features |
| Enterprises | https://github.com/enterprise |
| Small and medium teams | https://github.com/team |
| Startups | https://github.com/enterprise/startups |
| Nonprofits | https://github.com/solutions/industry/nonprofits |
| App Modernization | https://github.com/solutions/use-case/app-modernization |
| DevSecOps | https://github.com/solutions/use-case/devsecops |
| DevOps | https://github.com/solutions/use-case/devops |
| CI/CD | https://github.com/solutions/use-case/ci-cd |
| View all use cases | https://github.com/solutions/use-case |
| 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 |
| View all industries | https://github.com/solutions/industry |
| View all solutions | https://github.com/solutions |
| AI | https://github.com/resources/articles?topic=ai |
| Software Development | https://github.com/resources/articles?topic=software-development |
| DevOps | https://github.com/resources/articles?topic=devops |
| Security | https://github.com/resources/articles?topic=security |
| View all topics | https://github.com/resources/articles |
| Customer stories | https://github.com/customer-stories |
| Events & webinars | https://github.com/resources/events |
| Ebooks & reports | https://github.com/resources/whitepapers |
| Business insights | https://github.com/solutions/executive-insights |
| GitHub Skills | https://skills.github.com |
| Documentation | https://docs.github.com |
| Customer support | https://support.github.com |
| Community forum | https://github.com/orgs/community/discussions |
| Trust center | https://github.com/trust-center |
| Partners | https://github.com/partners |
| GitHub SponsorsFund open source developers | https://github.com/sponsors |
| Security Lab | https://securitylab.github.com |
| Maintainer Community | https://maintainers.github.com |
| Accelerator | https://github.com/accelerator |
| Archive Program | https://archiveprogram.github.com |
| Topics | https://github.com/topics |
| Trending | https://github.com/trending |
| Collections | https://github.com/collections |
| Enterprise platformAI-powered developer platform | https://github.com/enterprise |
| GitHub Advanced SecurityEnterprise-grade security features | 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/premium-support |
| Pricing | https://github.com/pricing |
| Search syntax tips | https://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax |
| documentation | https://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%2F121193 |
|
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%2Fvoltron%2Fpull_requests_fragments%2Fpull_request_layout&source=header-repo&source_repo=python%2Fcpython |
| Reload | https://github.com/python/cpython/pull/121193 |
| Reload | https://github.com/python/cpython/pull/121193 |
| Reload | https://github.com/python/cpython/pull/121193 |
|
python
| https://github.com/python |
| cpython | https://github.com/python/cpython |
| Please reload this page | https://github.com/python/cpython/pull/121193 |
|
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 page | https://github.com/python/cpython/pull/121193 |
|
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 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 |
| Jump to bottom | https://github.com/python/cpython/pull/121193#issue-comment-box |
| lgeiger | https://github.com/lgeiger |
| python:main | https://github.com/python/cpython/tree/main |
| lgeiger:deepcopy-empty-list-dict | https://github.com/lgeiger/cpython/tree/deepcopy-empty-list-dict |
|
gh-121192: Add fast path to deepcopy() for empty list/tuple/dict/set
| https://github.com/python/cpython/pull/121193#top |
| lgeiger | https://github.com/lgeiger |
| python:main | https://github.com/python/cpython/tree/main |
| lgeiger:deepcopy-empty-list-dict | https://github.com/lgeiger/cpython/tree/deepcopy-empty-list-dict |
|
Conversation
15
| https://github.com/python/cpython/pull/121193 |
|
Commits
5
| https://github.com/python/cpython/pull/121193/commits |
|
Checks
0
| https://github.com/python/cpython/pull/121193/checks |
|
Files changed
| https://github.com/python/cpython/pull/121193/files |
| Please reload this page | https://github.com/python/cpython/pull/121193 |
| https://github.co/hiddenchars |
| https://github.com/python/cpython/pull/{{ revealButtonHref }} |
|
| https://github.com/lgeiger |
| lgeiger | https://github.com/lgeiger |
| Jul 1, 2024 | https://github.com/python/cpython/pull/121193#issue-2382513978 |
| Please reload this page | https://github.com/python/cpython/pull/121193 |
| #114266 | https://github.com/python/cpython/pull/114266 |
| Add fast path to deepcopy() for empty list/tuple/dict/set #121192 | https://github.com/python/cpython/issues/121192 |
| Please reload this page | https://github.com/python/cpython/pull/121193 |
| lgeiger | https://github.com/lgeiger |
| June 30, 2024 23:12 | https://github.com/python/cpython/pull/121193#commits-pushed-f317c1b |
|
| https://github.com/lgeiger |
| Optimize deepcopy of empty containers | https://github.com/python/cpython/pull/121193/commits/f317c1b3979d1382201f369c476993b517ef2b1e |
| f317c1b | https://github.com/python/cpython/pull/121193/commits/f317c1b3979d1382201f369c476993b517ef2b1e |
|
| https://github.com/lgeiger |
| Remove special case for tuple and frozensets | https://github.com/python/cpython/pull/121193/commits/943a10fe6e62ddc07a4199a262ea0931e6fd3fb5 |
| 943a10f | https://github.com/python/cpython/pull/121193/commits/943a10fe6e62ddc07a4199a262ea0931e6fd3fb5 |
|
| https://github.com/lgeiger |
| Add NEWS entry | https://github.com/python/cpython/pull/121193/commits/68c589f8f34892bf29e8d951946955a6ae5537c9 |
| 68c589f | https://github.com/python/cpython/pull/121193/commits/68c589f8f34892bf29e8d951946955a6ae5537c9 |
| https://github.com/apps/bedevere-app |
| bedevere-app | https://github.com/apps/bedevere-app |
|
Jul 1, 2024
| https://github.com/python/cpython/pull/121193#ref-issue-2382461813 |
|
Add fast path to deepcopy() for empty list/tuple/dict/set
#121192
| https://github.com/python/cpython/issues/121192 |
| https://github.com/apps/bedevere-app |
| bedevere-app | https://github.com/apps/bedevere-app |
|
awaiting review
| https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20review%22 |
| Jul 1, 2024 | https://github.com/python/cpython/pull/121193#event-13343422109 |
|
| https://github.com/lgeiger |
| Don't call len for checking for empty container | https://github.com/python/cpython/pull/121193/commits/ba7298c7ff9801ccac64a3d127b279de5b3524dc |
| ba7298c | https://github.com/python/cpython/pull/121193/commits/ba7298c7ff9801ccac64a3d127b279de5b3524dc |
| https://github.com/lgeiger |
| lgeiger | https://github.com/lgeiger |
| Jul 1, 2024 | https://github.com/python/cpython/pull/121193#issuecomment-2198895197 |
| Please reload this page | https://github.com/python/cpython/pull/121193 |
| d87901e | https://github.com/python/cpython/commit/d87901edccdb811075711f7a6d1651044afc8086 |
| Please reload this page | https://github.com/python/cpython/pull/121193 |
| https://github.com/sobolevn |
| sobolevn | https://github.com/sobolevn |
|
Jul 1, 2024
| https://github.com/python/cpython/pull/121193#pullrequestreview-2150656769 |
|
View reviewed changes
| https://github.com/python/cpython/pull/121193/files/ba7298c7ff9801ccac64a3d127b279de5b3524dc |
| Lib/copy.py | https://github.com/python/cpython/pull/121193/files/ba7298c7ff9801ccac64a3d127b279de5b3524dc#diff-a06198e13686594114a45e7863b954a226ce08d43f724079faa7fe8b3c931703 |
| Please reload this page | https://github.com/python/cpython/pull/121193 |
| Lib/copy.py | https://github.com/python/cpython/pull/121193/files/ba7298c7ff9801ccac64a3d127b279de5b3524dc#diff-a06198e13686594114a45e7863b954a226ce08d43f724079faa7fe8b3c931703 |
| Please reload this page | https://github.com/python/cpython/pull/121193 |
| https://github.com/lgeiger |
| lgeiger | https://github.com/lgeiger |
|
Jul 2, 2024
| https://github.com/python/cpython/pull/121193#pullrequestreview-2152428428 |
|
View reviewed changes
| https://github.com/python/cpython/pull/121193/files/ba7298c7ff9801ccac64a3d127b279de5b3524dc |
| Lib/copy.py | https://github.com/python/cpython/pull/121193/files/ba7298c7ff9801ccac64a3d127b279de5b3524dc#diff-a06198e13686594114a45e7863b954a226ce08d43f724079faa7fe8b3c931703 |
| Please reload this page | https://github.com/python/cpython/pull/121193 |
|
| https://github.com/lgeiger |
| Revert optimization for nested empty containers | https://github.com/python/cpython/pull/121193/commits/d87901edccdb811075711f7a6d1651044afc8086 |
| d87901e | https://github.com/python/cpython/pull/121193/commits/d87901edccdb811075711f7a6d1651044afc8086 |
| https://github.com/lgeiger |
| lgeiger | https://github.com/lgeiger |
| force-pushed | https://github.com/python/cpython/compare/d7b07ebf1d90ebf125807a9979b313fcc311cbfd..d87901edccdb811075711f7a6d1651044afc8086 |
| d7b07eb | https://github.com/python/cpython/commit/d7b07ebf1d90ebf125807a9979b313fcc311cbfd |
| d87901e | https://github.com/python/cpython/commit/d87901edccdb811075711f7a6d1651044afc8086 |
|
Compare
| https://github.com/python/cpython/compare/d7b07ebf1d90ebf125807a9979b313fcc311cbfd..d87901edccdb811075711f7a6d1651044afc8086 |
| July 2, 2024 19:38 | https://github.com/python/cpython/pull/121193#event-13370881251 |
| https://github.com/eendebakpt |
| eendebakpt | https://github.com/eendebakpt |
| Jul 2, 2024 | https://github.com/python/cpython/pull/121193#issuecomment-2204309272 |
| Please reload this page | https://github.com/python/cpython/pull/121193 |
| https://github.com/eendebakpt |
| eendebakpt | https://github.com/eendebakpt |
| Jul 2, 2024 | https://github.com/python/cpython/pull/121193#issuecomment-2204319387 |
| #91610 | https://github.com/python/cpython/pull/91610 |
| Please reload this page | https://github.com/python/cpython/pull/121193 |
| https://github.com/sobolevn |
| sobolevn | https://github.com/sobolevn |
| Jul 3, 2024 | https://github.com/python/cpython/pull/121193#issuecomment-2205479001 |
| @eendebakpt | https://github.com/eendebakpt |
| Please reload this page | https://github.com/python/cpython/pull/121193 |
| https://github.com/eendebakpt |
| eendebakpt | https://github.com/eendebakpt |
| Jul 3, 2024 | https://github.com/python/cpython/pull/121193#issuecomment-2205624892 |
| @eendebakpt | https://github.com/eendebakpt |
| Please reload this page | https://github.com/python/cpython/pull/121193 |
| https://github.com/lgeiger |
| lgeiger | https://github.com/lgeiger |
| Jul 3, 2024 | https://github.com/python/cpython/pull/121193#issuecomment-2206001863 |
| Please reload this page | https://github.com/python/cpython/pull/121193 |
| https://github.com/sobolevn |
| sobolevn | https://github.com/sobolevn |
| Jul 3, 2024 | https://github.com/python/cpython/pull/121193#issuecomment-2206012554 |
| cpython/Lib/dataclasses.py | https://github.com/python/cpython/blob/26d24eeb90d781e381b97d64b4dcb1ee4dd891fe/Lib/dataclasses.py#L1487 |
| 26d24ee | https://github.com/python/cpython/commit/26d24eeb90d781e381b97d64b4dcb1ee4dd891fe |
| cpython/Lib/weakref.py | https://github.com/python/cpython/blob/26d24eeb90d781e381b97d64b4dcb1ee4dd891fe/Lib/weakref.py#L191 |
| 26d24ee | https://github.com/python/cpython/commit/26d24eeb90d781e381b97d64b4dcb1ee4dd891fe |
| cpython/Lib/weakref.py | https://github.com/python/cpython/blob/26d24eeb90d781e381b97d64b4dcb1ee4dd891fe/Lib/weakref.py#L448 |
| 26d24ee | https://github.com/python/cpython/commit/26d24eeb90d781e381b97d64b4dcb1ee4dd891fe |
| cpython/Lib/http/cookiejar.py | https://github.com/python/cpython/blob/26d24eeb90d781e381b97d64b4dcb1ee4dd891fe/Lib/http/cookiejar.py#L1819 |
| 26d24ee | https://github.com/python/cpython/commit/26d24eeb90d781e381b97d64b4dcb1ee4dd891fe |
| cpython/Lib/http/cookiejar.py | https://github.com/python/cpython/blob/26d24eeb90d781e381b97d64b4dcb1ee4dd891fe/Lib/http/cookiejar.py#L1267 |
| 26d24ee | https://github.com/python/cpython/commit/26d24eeb90d781e381b97d64b4dcb1ee4dd891fe |
| Please reload this page | https://github.com/python/cpython/pull/121193 |
| Sign up for free | https://github.com/join?source=comment-repo |
| Sign in to comment | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F121193 |
|
| https://github.com/sobolevn |
|
sobolevn
| https://github.com/sobolevn |
|
| https://github.com/python/cpython/pull/121193/files/ba7298c7ff9801ccac64a3d127b279de5b3524dc |
|
| https://github.com/pochmann3 |
|
pochmann3
| https://github.com/pochmann3 |
|
| https://github.com/python/cpython/pull/121193/files/ba7298c7ff9801ccac64a3d127b279de5b3524dc |
|
awaiting review
| https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20review%22 |
| Please reload this page | https://github.com/python/cpython/pull/121193 |
|
| https://github.com/lgeiger |
|
| https://github.com/eendebakpt |
|
| https://github.com/sobolevn |
|
| https://github.com/pochmann3 |
|
| 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 |