Optimize performance of copy.deepcopy by adding a fast path for atomic types #114264
Labels
performance
Performance or resource usage
stdlib
Python modules in the Lib dir
type-feature
A feature request or enhancement
Feature or enhancement
Proposal:
The performance of
copy.deepcopy
can be improved by adding a fast path for the atomic types. This will reduce the overhead of checking thememo
and the overhead of calling the dispatch method from the deepcopy dispatch table.Has this already been discussed elsewhere?
No response given
Links to previous discussion of this feature:
No response
Linked PRs
The text was updated successfully, but these errors were encountered: