GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Optimize performance of copy.deepcopy by adding a fast path for atomic types · Issue #114264 · python/cpython

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

New issue
Copy link
New issue
Copy link
Closed
Closed
Optimize performance of copy.deepcopy by adding a fast path for atomic types#114264
Copy link
Labels
performancePerformance or resource usagePerformance or resource usagestdlibStandard Library Python modules in the Lib/ directoryStandard Library Python modules in the Lib/ directorytype-featureA feature request or enhancementA feature request or enhancement

Description

@eendebakpt
eendebakpt
opened on Jan 18, 2024
Issue body actions

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

  • gh-114264: Optimize performance of copy.deepcopy by adding a fast path for atomic types #114266

Activity

  1. eendebakpt
    added
    type-featureA feature request or enhancementA feature request or enhancement
    on Jan 18, 2024
  2. erlend-aasland
    added
    performancePerformance or resource usagePerformance or resource usage
    stdlibStandard Library Python modules in the Lib/ directoryStandard Library Python modules in the Lib/ directory
    on Jan 18, 2024
  3. serhiy-storchaka
    added a commit that references this issue on Jun 7, 2024

    gh-114264: Optimize performance of copy.deepcopy by adding a fast pat…

    9d66042
  4. erlend-aasland
    closed this as completedon Jun 7, 2024
  5. estyxx
    added a commit that references this issue on Jul 17, 2024

    pythongh-114264: Optimize performance of copy.deepcopy by adding a fa…

    e23d38f
  6. gaborbernat
    added a commit that references this issue on Jun 2, 2026

    Inline atomic-type check in deepcopy container copiers

    9355bcc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    performancePerformance or resource usagePerformance or resource usagestdlibStandard Library Python modules in the Lib/ directoryStandard Library Python modules in the Lib/ directorytype-featureA feature request or enhancementA feature request or enhancement

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402503 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.