Skip to content

Speed up itertools.pairwise #118218

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

Activity

  1. added a commit that references this issue on Apr 24, 2024
  2. eendebakpt commented on Apr 24, 2024

    @eendebakpt
    Contributor

    Also see #118222 (improve performance of pairwise by replacing PyTuple_Pack)

  3. added a commit that references this issue on Apr 30, 2024
  4. added a commit that references this issue on May 8, 2024
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

    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