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 — Improve performance of copy.copy · Issue #128118 · python/cpython

Improve performance of copy.copy #128118

New issue
Copy link
New issue
Copy link
Closed
Closed
Improve performance of copy.copy#128118
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 Dec 20, 2024
Issue body actions

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

  • gh-128118: Improve performance of copy.copy by using a fast lookup for atomic and container types #128119

Activity

  1. eendebakpt
    added
    type-featureA feature request or enhancementA feature request or enhancement
    performancePerformance or resource usagePerformance or resource usage
    on Dec 20, 2024
  2. picnixz
    added
    stdlibStandard Library Python modules in the Lib/ directoryStandard Library Python modules in the Lib/ directory
    on Dec 20, 2024
  3. erlend-aasland
    added a commit that references this issue on Dec 30, 2024

    gh-128118: Speed up copy.copy with fast lookup for atomic and contain…

    34b85ef
  4. erlend-aasland
    closed this as completedon Dec 30, 2024
  5. erlend-aasland commented on Dec 30, 2024

    @erlend-aasland
    erlend-aasland
    on Dec 30, 2024
    Contributor
    More actions

    Resolved with:

    • gh-128118: Improve performance of copy.copy by using a fast lookup for atomic and container types #128119
  6. srinivasreddy
    added a commit that references this issue on Jan 8, 2025

    pythongh-128118: Speed up copy.copy with fast lookup for atomic and c…

    0803d9b
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.