From 5448b9cd60e9b1ebf4efcd2d1b2aac346b2e829c Mon Sep 17 00:00:00 2001 From: Eric Biggers Date: Sun, 25 May 2014 23:41:18 -0500 Subject: [PATCH] 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. --- src/lzx-compress.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) 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; } -- 2.43.0