xpress-compress.c: Adjust condition for using binary tree matchfinder
authorEric Biggers <ebiggers3@gmail.com>
Thu, 21 Aug 2014 04:59:12 +0000 (23:59 -0500)
committerEric Biggers <ebiggers3@gmail.com>
Thu, 21 Aug 2014 04:59:30 +0000 (23:59 -0500)
src/xpress-compress.c

index 5ff23e0..4b4e74d 100644 (file)
@@ -1040,7 +1040,7 @@ xpress_build_params(unsigned int compression_level, u32 max_window_size,
 
                /* Near-optimal parsing  */
                xpress_params->choose_items_func = xpress_choose_items_near_optimal;
-               if (max_window_size >= 32768)
+               if (max_window_size >= 16384)
                        xpress_params->mf_algo = LZ_MF_BINARY_TREES;
                else
                        xpress_params->mf_algo = LZ_MF_HASH_CHAINS;