]> wimlib.net Git - wimlib/commitdiff
lzx-compress.c: Disable verification by default
authorEric Biggers <ebiggers3@gmail.com>
Mon, 26 May 2014 04:41:18 +0000 (23:41 -0500)
committerEric Biggers <ebiggers3@gmail.com>
Mon, 26 May 2014 04:41:18 +0000 (23:41 -0500)
The algorithm seems to be sufficiently well tested now.  And the data is
checked with SHA-1 message digests anyway.  This slightly improves LZX
compression performance.

src/lzx-compress.c

index b337697eda3abb8688d33ddc4c14863f37dbfd25..8f70abb748fbbb4ffd19c396fe0496d0d4f5f7af 100644 (file)
@@ -1592,11 +1592,7 @@ lzx_compress(const void *uncompressed_data, size_t uncompressed_size,
         * Although this could be disabled by default in all cases, it only
         * takes around 2-3% of the running time of the slow algorithm to do the
         * verification.  */
-       if (ctx->params.algorithm == WIMLIB_LZX_ALGORITHM_SLOW
-       #if defined(ENABLE_LZX_DEBUG) || defined(ENABLE_VERIFY_COMPRESSION)
-           || 1
-       #endif
-           )
+#if defined(ENABLE_LZX_DEBUG) || defined(ENABLE_VERIFY_COMPRESSION)
        {
                struct wimlib_decompressor *decompressor;
 
@@ -1630,6 +1626,7 @@ lzx_compress(const void *uncompressed_data, size_t uncompressed_size,
                                "data verification!");
                }
        }
+#endif
        return compressed_size;
 }