-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Let user specify iterations without improvement #21
Let user specify iterations without improvement #21
Conversation
6729134
to
cdf7851
Compare
cdf7851
to
11d6fce
Compare
Thank you a bunch for this PR, your changes look interesting. Before I give it a closer review, I'd like to know if you were able to prove any of the hypotheses you suggested in #17? |
No, I haven't. I'll have a lot of experimenting to do in the future. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wish you the best of luck with your experiments!
These changes look good to me, at least until someone of us proves the hypotheses you proposed in the mentioned issue. Let's merge this.
…later (#530) * Add .whitesource configuration file * Experimental: allow Zopfli to use any size BufWriter * Allow user to specify the output buffer size as well * Allow user to specify maximum block splits * Reformat and fix warnings * Use deflater on iCCP chunk as well * Bug fix: need to implement Zlib format * Make functions const when possible * Switch to using zopfli::Options in prep for zopfli-rs/zopfli#21 * Switch to using zopfli::Options in prep for zopfli-rs/zopfli#21 * Cargo fmt * Fix compilation * Fix tests * Fix more lints * Fix more lints * Fix compilation more --------- Co-authored-by: mend-bolt-for-github[bot] <42819689+mend-bolt-for-github[bot]@users.noreply.github.com> Co-authored-by: Chris Hennick <hennickc@amazon.com> Co-authored-by: Chris Hennick <4961925+Pr0methean@users.noreply.github.com>
…later (shssoichiro#530) * Add .whitesource configuration file * Experimental: allow Zopfli to use any size BufWriter * Allow user to specify the output buffer size as well * Allow user to specify maximum block splits * Reformat and fix warnings * Use deflater on iCCP chunk as well * Bug fix: need to implement Zlib format * Make functions const when possible * Switch to using zopfli::Options in prep for zopfli-rs/zopfli#21 * Switch to using zopfli::Options in prep for zopfli-rs/zopfli#21 * Cargo fmt * Fix compilation * Fix tests * Fix more lints * Fix more lints * Fix compilation more --------- Co-authored-by: mend-bolt-for-github[bot] <42819689+mend-bolt-for-github[bot]@users.noreply.github.com> Co-authored-by: Chris Hennick <hennickc@amazon.com> Co-authored-by: Chris Hennick <4961925+Pr0methean@users.noreply.github.com>
This PR adds two enhancements for situations when small compression improvements are worth a lot of CPU time (including research purposes where a high chance of finding the absolute smallest possible file is desired).
It also skips the unused stats randomization during the final iteration. Dead-code elimination could not have done this, because calling a PRNG mutates its state.