Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve performance of copy.copy #128118

Open
eendebakpt opened this issue Dec 20, 2024 · 0 comments
Open

Improve performance of copy.copy #128118

eendebakpt opened this issue Dec 20, 2024 · 0 comments
Labels
performance Performance or resource usage stdlib Python modules in the Lib dir type-feature A feature request or enhancement

Comments

@eendebakpt
Copy link
Contributor

eendebakpt commented Dec 20, 2024

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 already been discussed elsewhere?

This is a minor feature, which does not need previous discussion elsewhere

Links to previous discussion of this feature:

No response

Linked PRs

@eendebakpt eendebakpt added the type-feature A feature request or enhancement label Dec 20, 2024
@eendebakpt eendebakpt added the performance Performance or resource usage label Dec 20, 2024
@picnixz picnixz added the stdlib Python modules in the Lib dir label Dec 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
performance Performance or resource usage stdlib Python modules in the Lib dir type-feature A feature request or enhancement
Projects
None yet
Development

No branches or pull requests

2 participants