Closed Philippe-Cholet closed 9 months ago
Based on https://github.com/rust-itertools/itertools/pull/849#discussion_r1453662745, ZipLongest::fold seems to be the only iterator that might benefit from this idea.
ZipLongest::fold
Benchmark specializations on slices is now +13% (still better than no fold specialization) but it might perform better in a more general case.
fold
Based on https://github.com/rust-itertools/itertools/pull/849#discussion_r1453662745,
ZipLongest::fold
seems to be the only iterator that might benefit from this idea.Benchmark specializations on slices is now +13% (still better than no
fold
specialization) but it might perform better in a more general case.