The filters used during reduction evaluations are normally set to None &
Bigrams, regardless of any options. This PR makes a slight change so
that if only one filter is specified in the options, this filter will be
used for reduction evaluations too.
This resolves an odd situation affecting lower levels (when --fast is
enabled) where you may try to force the filter to a specific value but
it actually ends up different because a reduction evaluation was
smaller. It's particularly helpful if you're wanting it to be as fast as
possible by using `-o0 -f0` which will now exclusively use None instead
of trying the slower Bigrams as well.
As another use, you could try to brute force oxipng by iterating each
filter separately, though this may not actually achieve anything 😂
[edit] I also pulled the options out into a separate file, though this
wasn't relevant to the filter change.
|
||
|---|---|---|
| .. | ||
| files | ||
| filters.rs | ||
| flags.rs | ||
| interlaced.rs | ||
| interlacing.rs | ||
| lib.rs | ||
| raw.rs | ||
| reduction.rs | ||
| regression.rs | ||
| strategies.rs | ||