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 — Micro optimize list.pop · Issue #94603 · python/cpython

Micro optimize list.pop #94603

New issue
Copy link
New issue
Copy link
Closed
Closed
Micro optimize list.pop#94603
Copy link
Labels
3.12only security fixesonly security fixesperformancePerformance or resource usagePerformance or resource usagetype-featureA feature request or enhancementA feature request or enhancement

Description

@eendebakpt
eendebakpt
opened on Jul 6, 2022
Issue body actions

Feature or enhancement

list.pop currently calls list_ass_slice which contains some extra caculations not relevant for list.pop. With a direct implementation the cases for small lists is improved.

Pitch

The gain for the improved cases is in the 10% to 30% range.

Previous discussion

This came out of tests performed related to #94508

  • PR: gh-94603: micro optimize list.pop #94604

Activity

  1. eendebakpt
    added
    type-featureA feature request or enhancementA feature request or enhancement
    on Jul 6, 2022
  2. AlexWaygood
    added
    performancePerformance or resource usagePerformance or resource usage
    3.12only security fixesonly security fixes
    on Jul 6, 2022
  3. corona10
    added a commit that references this issue on Dec 27, 2022

    gh-94603: micro optimize list.pop (gh-94604)

    b3da698
  4. corona10
    closed this as completedon Dec 27, 2022
  5. iritkatriel
    added a commit that references this issue on Dec 28, 2022

    Merged main into regmachine branch (#50)

    fdc73cb
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

    3.12only security fixesonly security fixesperformancePerformance or resource usagePerformance or resource usagetype-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.