Closed uzytkownik closed 4 months ago
Thank you for this!
For context for those looking into this - the previous implementation was generating a random number for scale however discarding most of them. This is quite inefficient - this updated implementation instead places a range on scale generation so that it can succeed without having to discard items.
Currently the
proptest::Arbitrary
implementation usesfilter_map
with failure rate of ~90%. This causes problems if user need to filter it further.This change replaces it with using a range removing backtracing.