Skip to content

Commit

Permalink
--slowdyn#
Browse files Browse the repository at this point in the history
- Add new switch --slowdyn# which forces block splitter to use LZ77 Optimal (iterations mode) to evaluate split point costs. Increases overall compression time, especially with high # number which indicated maximum unsuccessful iterations after last best result for this mode,
- Rename --slowsplit to --slowfix to indicate it slows down the splitter only with fixed blocks,
- Rewrite README.
  • Loading branch information
MrKrzYch00 committed Feb 11, 2018
1 parent e94bed1 commit 29fa412
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/zopfli/deflate.c
Expand Up @@ -923,7 +923,7 @@ zfloat ZopfliCalculateBlockSize(const ZopfliOptions* options,
ZopfliInitLZ77Store(lz77->data, &store);
ZopfliInitBlockState(options2, instart, inend, 1, &s);
mui = options->slowdynmui;
result += ZopfliLZ77Optimal(&s, lz77->data, instart, inend, &store, &iterations, NULL, &iter);
result = ZopfliLZ77Optimal(&s, lz77->data, instart, inend, &store, &iterations, NULL, &iter);
mui = 0;
free(options2);
ZopfliCleanBlockState(&s);
Expand Down

0 comments on commit 29fa412

Please sign in to comment.