mirror of
https://github.com/cuberite/libdeflate.git
synced 2025-08-04 02:06:31 -04:00
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:
parent
057cb92782
commit
f699b697d6
@ -2760,8 +2760,8 @@ libdeflate_alloc_compressor(int compression_level)
|
|||||||
break;
|
break;
|
||||||
case 4:
|
case 4:
|
||||||
c->impl = deflate_compress_greedy;
|
c->impl = deflate_compress_greedy;
|
||||||
c->max_search_depth = 24;
|
c->max_search_depth = 16;
|
||||||
c->nice_match_length = 24;
|
c->nice_match_length = 30;
|
||||||
break;
|
break;
|
||||||
case 5:
|
case 5:
|
||||||
c->impl = deflate_compress_lazy;
|
c->impl = deflate_compress_lazy;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user