deflate_compress: tweak level 4 parameters

Use a lower max_search_depth but a higher nice_match_length.  This seems
to turn out a bit better, on average.  This is consistent with what the
other compression levels do; level 4 was the only one that had
nice_match_length <= max_search_depth.
This commit is contained in:
Eric Biggers 2021-12-31 16:04:49 -06:00
parent 057cb92782
commit f699b697d6

View File

@ -2760,8 +2760,8 @@ libdeflate_alloc_compressor(int compression_level)
break;
case 4:
c->impl = deflate_compress_greedy;
c->max_search_depth = 24;
c->nice_match_length = 24;
c->max_search_depth = 16;
c->nice_match_length = 30;
break;
case 5:
c->impl = deflate_compress_lazy;