Closed ripytide closed 3 months ago
It seems we need to bump the minimal rust version now since one of our dependencies, I think bitstream-io
now requires v1.79
Thanks! What impact does this have on function run time for the greyscale case?
Looks like no impact: Before PR:
test contrast::benches::bench_stretch_contrast ... bench: 660.08 ns/iter (+/- 2.24)
test contrast::benches::bench_stretch_contrast_mut ... bench: 0.25 ns/iter (+/- 0.00)
After PR:
test contrast::benches::bench_stretch_contrast ... bench: 658.86 ns/iter (+/- 7.36)
test contrast::benches::bench_stretch_contrast_mut ... bench: 0.25 ns/iter (+/- 0.00)
Thanks!
(Aside: it looks like the _mut variant of that benchmark is optimising out the function and so not actually running .)
Ideally we'd want to use the
Enlargeable
trait currently private insideimage
to make this work for all types rather than justu8
, but this is still an improvement that should be good enough for https://github.com/image-rs/image/issues/2238.