deflate_compress: slightly decrease max_search_depth for levels 5-6

The new match scoring method in the lazy compressor has improved the
compression ratio slightly.  Therefore, for levels 5-6 decrease
max_search_depth slightly to get a bit more performance.
This commit is contained in:
Eric Biggers 2021-12-31 16:04:49 -06:00
parent 193dedc73f
commit 057cb92782

View File

@ -2765,12 +2765,12 @@ libdeflate_alloc_compressor(int compression_level)
break; break;
case 5: case 5:
c->impl = deflate_compress_lazy; c->impl = deflate_compress_lazy;
c->max_search_depth = 20; c->max_search_depth = 16;
c->nice_match_length = 30; c->nice_match_length = 30;
break; break;
case 6: case 6:
c->impl = deflate_compress_lazy; c->impl = deflate_compress_lazy;
c->max_search_depth = 40; c->max_search_depth = 35;
c->nice_match_length = 65; c->nice_match_length = 65;
break; break;
case 7: case 7: