Skip to content

Micro optimize list.pop #94603

Closed
Closed
@eendebakpt

Description

@eendebakpt

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    3.12only security fixesperformancePerformance or resource usagetype-featureA feature request or enhancement

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions