mirror of
https://github.com/cuberite/libdeflate.git
synced 2025-09-09 04:05:12 -04:00
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:
parent
193dedc73f
commit
057cb92782
@ -2765,12 +2765,12 @@ libdeflate_alloc_compressor(int compression_level)
|
||||
break;
|
||||
case 5:
|
||||
c->impl = deflate_compress_lazy;
|
||||
c->max_search_depth = 20;
|
||||
c->max_search_depth = 16;
|
||||
c->nice_match_length = 30;
|
||||
break;
|
||||
case 6:
|
||||
c->impl = deflate_compress_lazy;
|
||||
c->max_search_depth = 40;
|
||||
c->max_search_depth = 35;
|
||||
c->nice_match_length = 65;
|
||||
break;
|
||||
case 7:
|
||||
|
Loading…
x
Reference in New Issue
Block a user