X-Git-Url: https://wimlib.net/git/?p=wimlib;a=blobdiff_plain;f=src%2Flzx_compress.c;h=47d8bf0be9714e7fe1a9a1f846d6f1cf9f92cff7;hp=f0edddd33aab3d706826b8db4f85fa7d07918133;hb=4b076a156796c1c0358c2e7e3c6610a2e772dd49;hpb=c97b3097024081df0e955171363f8e727b115440 diff --git a/src/lzx_compress.c b/src/lzx_compress.c index f0edddd3..47d8bf0b 100644 --- a/src/lzx_compress.c +++ b/src/lzx_compress.c @@ -2257,8 +2257,8 @@ lzx_create_compressor(size_t max_bufsize, unsigned compression_level, c->impl = lzx_compress_lazy_16; else c->impl = lzx_compress_lazy_32; - c->max_search_depth = (36 * compression_level) / 20; - c->nice_match_length = (72 * compression_level) / 20; + c->max_search_depth = (60 * compression_level) / 20; + c->nice_match_length = (80 * compression_level) / 20; /* lzx_compress_lazy() needs max_search_depth >= 2 because it * halves the max_search_depth when attempting a lazy match, and @@ -2277,7 +2277,7 @@ lzx_create_compressor(size_t max_bufsize, unsigned compression_level, /* Scale nice_match_length and max_search_depth with the * compression level. */ c->max_search_depth = (24 * compression_level) / 50; - c->nice_match_length = (32 * compression_level) / 50; + c->nice_match_length = (48 * compression_level) / 50; /* Set a number of optimization passes appropriate for the * compression level. */