Closed AndWass closed 3 years ago
Step by currently has performance issues in the "naive" but probably most common case. See #52
Benchmarks on my machine using 1.53 stable:
for_each_step_by
: 51uspushgen_step_by
: 315usAdd stepping capability to SliceGenerator
and benchmark both for regressions and compare with current .step_by
Adding an advance
method to base Generator
trait with default implementation using run
allows for same performance as for Iterator::for_each
.
Closed in favor of #64
Closes #5