From: Eric Biggers Date: Mon, 26 May 2014 04:41:18 +0000 (-0500) Subject: lzx-compress.c: Disable verification by default X-Git-Tag: v1.7.0~99 X-Git-Url: https://wimlib.net/git/?p=wimlib;a=commitdiff_plain;h=5448b9cd60e9b1ebf4efcd2d1b2aac346b2e829c lzx-compress.c: Disable verification by default 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. --- diff --git a/src/lzx-compress.c b/src/lzx-compress.c index b337697e..8f70abb7 100644 --- a/src/lzx-compress.c +++ b/src/lzx-compress.c @@ -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; }