Title: Improve performance of copy.copy · Issue #128118 · python/cpython · GitHub
Open Graph Title: Improve performance of copy.copy · Issue #128118 · python/cpython
X Title: Improve performance of copy.copy · Issue #128118 · python/cpython
Description: Feature or enhancement Proposal: Similar to the approached used for copy.deepcopy in #114266 we can simplifly the implementation of copy.copy and improve performance by checking on the type of the argument using a lookup. Has this alread...
Open Graph Description: Feature or enhancement Proposal: Similar to the approached used for copy.deepcopy in #114266 we can simplifly the implementation of copy.copy and improve performance by checking on the type of the ...
X Description: Feature or enhancement Proposal: Similar to the approached used for copy.deepcopy in #114266 we can simplifly the implementation of copy.copy and improve performance by checking on the type of the ...
Opengraph URL: https://github.com/python/cpython/issues/128118
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Improve performance of copy.copy","articleBody":"# Feature or enhancement\n\n### Proposal:\n\nSimilar to the approached used for `copy.deepcopy` in #114266 we can simplifly the implementation of `copy.copy` and improve performance by checking on the type of the argument using a lookup. \n\n\n### Has this already been discussed elsewhere?\n\nThis is a minor feature, which does not need previous discussion elsewhere\n\n### Links to previous discussion of this feature:\n\n_No response_\n\n\u003c!-- gh-linked-prs --\u003e\n### Linked PRs\n* gh-128119\n\u003c!-- /gh-linked-prs --\u003e\n","author":{"url":"https://github.com/eendebakpt","@type":"Person","name":"eendebakpt"},"datePublished":"2024-12-20T10:52:26.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/128118/cpython/issues/128118"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:f4c099c8-78cd-e948-060f-f2dfb53a00fb |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B3F6:CF40E:468560:627B73:696A7410 |
| html-safe-nonce | aa6862371449e6c7c73321ebc6067f7552d06d059fa8b728352f3e0cdd66f459 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCM0Y2OkNGNDBFOjQ2ODU2MDo2MjdCNzM6Njk2QTc0MTAiLCJ2aXNpdG9yX2lkIjoiMTE4MjQwMTg2MTI0NzQ2NDQ2NCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | afec4141c649dcb88f5b55f9295e415414804fa21729906e3380d36f27c8ff5d |
| hovercard-subject-tag | issue:2752480139 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/python/cpython/128118/issue_layout |
| twitter:image | https://opengraph.githubassets.com/0c7d4f3be53d7d4810819f13638a4faf2d779ad8a10e347abb34e243f89a8d41/python/cpython/issues/128118 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/0c7d4f3be53d7d4810819f13638a4faf2d779ad8a10e347abb34e243f89a8d41/python/cpython/issues/128118 |
| og:image:alt | Feature or enhancement Proposal: Similar to the approached used for copy.deepcopy in #114266 we can simplifly the implementation of copy.copy and improve performance by checking on the type of the ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | eendebakpt |
| 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 |
Links:
Viewport: width=device-width