| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:5ad09595-a4fb-9ed9-fb01-f759582c38d2 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | E684:35B8D6:20EE3D8:2D4A5D9:696ABA5E |
| html-safe-nonce | 467fa28346ead701d9c41b1d40449bc9dde187139e50c292bf463b0c2b828895 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFNjg0OjM1QjhENjoyMEVFM0Q4OjJENEE1RDk6Njk2QUJBNUUiLCJ2aXNpdG9yX2lkIjoiMjcwNDA5ODc5NzAxMTI1Mzg1NCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | af99437c2716f9ac97f7cc90293e7938c83e3d42f9626ec55b7b7225a4c29077 |
| hovercard-subject-tag | pull_request:1685560550 |
| 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/114266/files |
| twitter:image | https://avatars.githubusercontent.com/u/883786?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/883786?s=400&v=4 |
| og:image:alt | By adding a fast path for atomic types we eliminate the overhead of checking the memo argument of deepcopy and the overhead of calling the dispatch method.
Benchmark:
deepcopy dict: Mean +- std dev... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 46ce962e0e18113ea447391b6ace8b02d4d2861e57b4fbab3658698f73d8855b |
| 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 | 30300f30bb3949de255e84a146706a3bdb5c19c9 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| Skip to content | https://github.com/python/cpython/pull/114266/files#start-of-content |
|
| https://github.com/ |
|
Sign in
| https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F114266%2Ffiles |
| 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%2F114266%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/114266/files |
| Reload | https://github.com/python/cpython/pull/114266/files |
| Reload | https://github.com/python/cpython/pull/114266/files |
|
python
| https://github.com/python |
| cpython | https://github.com/python/cpython |
| Please reload this page | https://github.com/python/cpython/pull/114266/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 page | https://github.com/python/cpython/pull/114266/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 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 |
| serhiy-storchaka | https://github.com/serhiy-storchaka |
| python:main | https://github.com/python/cpython/tree/main |
| eendebakpt:deepcopy_atomic_types | https://github.com/eendebakpt/cpython/tree/deepcopy_atomic_types |
|
Conversation
22
| https://github.com/python/cpython/pull/114266 |
|
Commits
23
| https://github.com/python/cpython/pull/114266/commits |
|
Checks
0
| https://github.com/python/cpython/pull/114266/checks |
|
Files changed
| https://github.com/python/cpython/pull/114266/files |
| Please reload this page | https://github.com/python/cpython/pull/114266/files |
|
gh-114264: Optimize performance of copy.deepcopy by adding a fast path for atomic types
| https://github.com/python/cpython/pull/114266/files#top |
|
Show all changes
23 commits
| https://github.com/python/cpython/pull/114266/files |
|
9990245
Optimize performance of copy.deepcopy by adding a fast path for atomi…
eendebakpt Jan 18, 2024
| https://github.com/python/cpython/pull/114266/commits/9990245b3d441820d6576f679d9ce6e291e71b49 |
|
06f1980
match order with main
eendebakpt Jan 18, 2024
| https://github.com/python/cpython/pull/114266/commits/06f1980fa6236f3403ffd34597ee453ba4fd2c8f |
|
dd9fabf
📜🤖 Added by blurb_it.
blurb-it[bot] Jan 18, 2024
| https://github.com/python/cpython/pull/114266/commits/dd9fabfaf4f089865ff68445d53555f265e43c41 |
|
becbb59
format news entry
eendebakpt Jan 18, 2024
| https://github.com/python/cpython/pull/114266/commits/becbb591cc5a83d477edbd1c57435bcfe79b6745 |
|
339c2b9
put d variable back
eendebakpt Jan 19, 2024
| https://github.com/python/cpython/pull/114266/commits/339c2b9551482dc580bc2cb6ed49a480f11a6e75 |
|
89ecad1
Merge branch 'deepcopy_atomic_types' of github.com:eendebakpt/cpython…
eendebakpt Jan 19, 2024
| https://github.com/python/cpython/pull/114266/commits/89ecad1f3b9d03cc6b47b09e2cedc8e429c34d08 |
|
9aacf87
Merge branch 'main' into deepcopy_atomic_types
eendebakpt Jan 30, 2024
| https://github.com/python/cpython/pull/114266/commits/9aacf87f8b60c476eba4b2b84694d54a48096a6b |
|
5197f94
Merge branch 'main' into deepcopy_atomic_types
eendebakpt Feb 4, 2024
| https://github.com/python/cpython/pull/114266/commits/5197f943c55ee1ad8dc1045ed5a083625325f243 |
|
18914f3
Merge branch 'main' into deepcopy_atomic_types
eendebakpt Feb 26, 2024
| https://github.com/python/cpython/pull/114266/commits/18914f3756167bc24e88684ddda2fa236604e20d |
|
8f294c7
Merge branch 'main' into deepcopy_atomic_types
eendebakpt Feb 26, 2024
| https://github.com/python/cpython/pull/114266/commits/8f294c7f8e566635aa85c1900f26fb5c60008d9c |
|
3b57fc1
Merge branch 'main' into deepcopy_atomic_types
eendebakpt Mar 18, 2024
| https://github.com/python/cpython/pull/114266/commits/3b57fc1f3662c629cb9cc84d61bffade44b74067 |
|
53d63a7
Merge branch 'main' into deepcopy_atomic_types
eendebakpt Mar 29, 2024
| https://github.com/python/cpython/pull/114266/commits/53d63a79f91abf0c4310413fae32196aefd21c30 |
|
eb8e6ba
improve performance of _deepcopy_list with a list comprehension
eendebakpt Apr 13, 2024
| https://github.com/python/cpython/pull/114266/commits/eb8e6ba35cf7a1826fe756a5281b70af5531acfa |
|
e468b6c
avoid generation of exception in _deepcopy_tuple
eendebakpt Apr 13, 2024
| https://github.com/python/cpython/pull/114266/commits/e468b6c5169c124e567885d29d388fb757f2bf5d |
|
2b4abe6
Merge branch 'main' into deepcopy_atomic_types
eendebakpt Apr 13, 2024
| https://github.com/python/cpython/pull/114266/commits/2b4abe6da927ba02ffaa9209b591e23d3ad83db1 |
|
e3310f5
revert comprehension changes
eendebakpt Apr 14, 2024
| https://github.com/python/cpython/pull/114266/commits/e3310f5731db181c40e7e758b59cbab454a0455c |
|
1186a5b
Merge branch 'deepcopy_atomic_types' of github.com:eendebakpt/cpython…
eendebakpt Apr 14, 2024
| https://github.com/python/cpython/pull/114266/commits/1186a5b2079e6c1c8162d549db09c20b5ba088d1 |
|
ce7273b
Merge branch 'main' into deepcopy_atomic_types
eendebakpt Apr 20, 2024
| https://github.com/python/cpython/pull/114266/commits/ce7273b08a2f6e25d4b889e594f86d798c559c36 |
|
4bc74d3
Update Lib/copy.py
eendebakpt May 1, 2024
| https://github.com/python/cpython/pull/114266/commits/4bc74d3fda5c39bcecdd5bebcf909477dcc4a6da |
|
d69d8da
Merge branch 'main' into deepcopy_atomic_types
eendebakpt May 1, 2024
| https://github.com/python/cpython/pull/114266/commits/d69d8da33ee73876b4add59a80807e2f317a8b10 |
|
c66b24d
Apply suggestions from code review
eendebakpt May 1, 2024
| https://github.com/python/cpython/pull/114266/commits/c66b24d5ad017414ebf9feb6bc92d50f56a6733d |
|
142b0fc
Merge branch 'main' into deepcopy_atomic_types
eendebakpt May 6, 2024
| https://github.com/python/cpython/pull/114266/commits/142b0fcc0fff81567235d2e6109175e365483c67 |
|
d6fa670
Merge branch 'main' into deepcopy_atomic_types
eendebakpt Jun 1, 2024
| https://github.com/python/cpython/pull/114266/commits/d6fa67047d14b113797117579c540841a032ed75 |
|
Clear filters
| https://github.com/python/cpython/pull/114266/files |
| Please reload this page | https://github.com/python/cpython/pull/114266/files |
| Please reload this page | https://github.com/python/cpython/pull/114266/files |
|
copy.py
| https://github.com/python/cpython/pull/114266/files#diff-a06198e13686594114a45e7863b954a226ce08d43f724079faa7fe8b3c931703 |
|
2024-01-18-21-44-23.gh-issue-114264.DBKn29.rst
| https://github.com/python/cpython/pull/114266/files#diff-6b3d44a3960debbb9d3cb5f6b706c61a138299062eb90f77ad7b5d66d6e26e53 |
| Lib/copy.py | https://github.com/python/cpython/pull/114266/files#diff-a06198e13686594114a45e7863b954a226ce08d43f724079faa7fe8b3c931703 |
|
View file
| https://github.com/eendebakpt/cpython/blob/d6fa67047d14b113797117579c540841a032ed75/Lib/copy.py |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/python/cpython/pull/114266/{{ revealButtonHref }} |
|
| https://github.com/python/cpython/pull/114266/files#diff-a06198e13686594114a45e7863b954a226ce08d43f724079faa7fe8b3c931703 |
| sunmy2019 | https://github.com/sunmy2019 |
| Jan 19, 2024 | https://github.com/python/cpython/pull/114266/files#r1458467568 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| Please reload this page | https://github.com/python/cpython/pull/114266/files |
| gaogaotiantian | https://github.com/gaogaotiantian |
| Jan 19, 2024 | https://github.com/python/cpython/pull/114266/files#r1458520131 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| Please reload this page | https://github.com/python/cpython/pull/114266/files |
| eendebakpt | https://github.com/eendebakpt |
| Jan 19, 2024 | https://github.com/python/cpython/pull/114266/files#r1458727771 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| Please reload this page | https://github.com/python/cpython/pull/114266/files |
| serhiy-storchaka | https://github.com/serhiy-storchaka |
| Jan 19, 2024 | https://github.com/python/cpython/pull/114266/files#r1458755467 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| Please reload this page | https://github.com/python/cpython/pull/114266/files |
| eendebakpt | https://github.com/eendebakpt |
| Jan 19, 2024 | https://github.com/python/cpython/pull/114266/files#r1459715308 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| @serhiy-storchaka | https://github.com/serhiy-storchaka |
| main...eendebakpt:deepcopy_atomic_types_v3 | https://github.com/python/cpython/compare/main...eendebakpt:deepcopy_atomic_types_v3 |
| main...eendebakpt:deepcopy_atomic_types_v4 | https://github.com/python/cpython/compare/main...eendebakpt:deepcopy_atomic_types_v4 |
| Please reload this page | https://github.com/python/cpython/pull/114266/files |
| gaogaotiantian | https://github.com/gaogaotiantian |
| Jan 19, 2024 | https://github.com/python/cpython/pull/114266/files#r1459834592 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| Please reload this page | https://github.com/python/cpython/pull/114266/files |
| sunmy2019 | https://github.com/sunmy2019 |
| Jan 20, 2024 | https://github.com/python/cpython/pull/114266/files#r1460292797 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| Please reload this page | https://github.com/python/cpython/pull/114266/files |
| serhiy-storchaka | https://github.com/serhiy-storchaka |
| Jan 20, 2024 | https://github.com/python/cpython/pull/114266/files#r1460324317 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| Please reload this page | https://github.com/python/cpython/pull/114266/files |
| eendebakpt | https://github.com/eendebakpt |
| Jan 22, 2024 | https://github.com/python/cpython/pull/114266/files#r1462470763 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| main...eendebakpt:deepcopy_atomic_types_v3 | https://github.com/python/cpython/compare/main...eendebakpt:deepcopy_atomic_types_v3 |
| main...eendebakpt:deepcopy_atomic_types_v4 | https://github.com/python/cpython/compare/main...eendebakpt:deepcopy_atomic_types_v4 |
| gh-72793: C implementation of parts of copy.deepcopy #91610 | https://github.com/python/cpython/pull/91610 |
| Please reload this page | https://github.com/python/cpython/pull/114266/files |
|
| https://github.com/python/cpython/pull/114266/files#diff-a06198e13686594114a45e7863b954a226ce08d43f724079faa7fe8b3c931703 |
|
| https://github.com/python/cpython/pull/114266/files#diff-a06198e13686594114a45e7863b954a226ce08d43f724079faa7fe8b3c931703 |
|
| https://github.com/python/cpython/pull/114266/files#diff-a06198e13686594114a45e7863b954a226ce08d43f724079faa7fe8b3c931703 |
| Please reload this page | https://github.com/python/cpython/pull/114266/files |
|
| https://github.com/python/cpython/pull/114266/files#diff-a06198e13686594114a45e7863b954a226ce08d43f724079faa7fe8b3c931703 |
| Misc/NEWS.d/next/Library/2024-01-18-21-44-23.gh-issue-114264.DBKn29.rst | https://github.com/python/cpython/pull/114266/files#diff-6b3d44a3960debbb9d3cb5f6b706c61a138299062eb90f77ad7b5d66d6e26e53 |
|
View file
| https://github.com/eendebakpt/cpython/blob/d6fa67047d14b113797117579c540841a032ed75/Misc/NEWS.d/next/Library/2024-01-18-21-44-23.gh-issue-114264.DBKn29.rst |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/python/cpython/pull/114266/{{ revealButtonHref }} |
|
| 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 |