itertools icon indicating copy to clipboard operation
itertools copied to clipboard

Feature request: a debug-only version of `zip_eq`

Open BugenZhao opened this issue 2 years ago • 0 comments

As it's known that zip_eq kills the performance, but I appreciate that it has helped to find a lot of runtime issues. So I'm curious whether it's worthwhile to add a debug-only version of zip_eq which directly forwards the implementation to std::iter::Zip when debug_assertions is off? We may let it return an opaque type to achieve this.

BugenZhao avatar Feb 08 '23 09:02 BugenZhao