mirror of
https://github.com/cuberite/libdeflate.git
synced 2025-08-03 17:56:17 -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;
|
||||
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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user