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 <!-- gh-linked-prs --> ### Linked PRs * gh-118219 <!-- /gh-linked-prs -->