Skip to content

Speed up itertools.pairwise #118218

Closed
Closed
@hauntsaninja

Description

@hauntsaninja

The pairwise implementation mentions that we can reuse the result tuple

There's currently some discussion of performance ongoing at https://discuss.python.org/t/nwise-itertools/51718

Linked PRs

Metadata

Metadata

Assignees

No one assigned

    Labels

    extension-modulesC modules in the Modules dirperformancePerformance 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