Skip to content

Optimize performance of copy.deepcopy by adding a fast path for atomic types #114264

Closed
@eendebakpt

Description

@eendebakpt

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 the memo 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    performancePerformance or resource usagestdlibPython modules in the Lib dirtype-featureA feature request or enhancement

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions