Improve performance of copy.copy #128118
Labels
performance
Performance or resource usage
stdlib
Python modules in the Lib dir
type-feature
A feature request or enhancement
Feature or enhancement
Proposal:
Similar to the approached used for
copy.deepcopy
in #114266 we can simplifly the implementation ofcopy.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
The text was updated successfully, but these errors were encountered: