Replace num_fast_bytes => nice_match_length
authorEric Biggers <ebiggers3@gmail.com>
Wed, 1 Jan 2014 21:43:19 +0000 (15:43 -0600)
committerEric Biggers <ebiggers3@gmail.com>
Wed, 1 Jan 2014 21:43:53 +0000 (15:43 -0600)
There is no binary tree match-finder anymore, so 'nice_match_length'
makes more sense.

include/wimlib.h
programs/imagex.c
src/lzx-compress.c

index 0fc5fb9..c0aaf13 100644 (file)
@@ -4014,10 +4014,11 @@ struct wimlib_lzx_compressor_params {
 
                        uint32_t slow_reserved1 : 31;
 
-                       /** Matches with length (in bytes) longer than this
-                        * value are immediately taken without spending time on
-                        * minimum-cost measurements.  Suggested value: 32.  */
-                       uint32_t num_fast_bytes;
+                       /** Matches with length (in bytes) greater than or equal
+                        * to this value are immediately taken without spending
+                        * time on minimum-cost measurements.  Suggested value:
+                        * 32.  */
+                       uint32_t nice_match_length;
 
                        /** Number of passes to compute a match/literal sequence
                         * for each LZX block.  This is for an iterative
index d64f2e0..0a0934d 100644 (file)
@@ -446,7 +446,7 @@ set_compress_slow(void)
                .alg_params = {
                        .slow = {
                                .use_len2_matches = 1,
-                               .num_fast_bytes = 96,
+                               .nice_match_length = 96,
                                .num_optim_passes = 4,
                                .max_search_depth = 100,
                                .max_matches_per_pos = 10,
index ae4bfa7..2cce444 100644 (file)
@@ -1675,7 +1675,7 @@ lzx_create_compressor(size_t window_size,
                .alg_params = {
                        .slow = {
                                .use_len2_matches = 1,
-                               .num_fast_bytes = 32,
+                               .nice_match_length = 32,
                                .num_optim_passes = 2,
                                .max_search_depth = 50,
                                .max_matches_per_pos = 3,
@@ -1741,7 +1741,7 @@ lzx_create_compressor(size_t window_size,
        if (params->algorithm == WIMLIB_LZX_ALGORITHM_SLOW) {
                if (!lz_match_chooser_init(&ctx->mc,
                                           LZX_OPTIM_ARRAY_SIZE,
-                                          params->alg_params.slow.num_fast_bytes,
+                                          params->alg_params.slow.nice_match_length,
                                           LZX_MAX_MATCH_LEN))
                        goto oom;
        }