git: 984caafec11e - stable/14 - zlib: use more memory for a small deflate speedup.

From: Xin LI <delphij_at_FreeBSD.org>
Date: Thu, 21 Mar 2024 03:49:28 UTC
The branch stable/14 has been updated by delphij:

URL: https://cgit.FreeBSD.org/src/commit/?id=984caafec11e2b9b044d23dda23a67270f6108ea

commit 984caafec11e2b9b044d23dda23a67270f6108ea
Author:     Xin LI <delphij@FreeBSD.org>
AuthorDate: 2024-02-19 23:01:04 +0000
Commit:     Xin LI <delphij@FreeBSD.org>
CommitDate: 2024-03-21 03:49:04 +0000

    zlib: use more memory for a small deflate speedup.
    
    The LIT_MEM option uses slightly more memory (for base gzip(1),
    about 16kiB; according to the author, about 6% for default deflate
    settings) for a small speedup.
    
    The performance gain is more noticeable for input data with higher
    entropy and less significant for data that is highly compressible,
    such as source code and logs.
    
    (cherry picked from commit aea57ebcb1b053370ea1f0e29cdc666291bc5d5e)
---
 sys/contrib/zlib/deflate.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sys/contrib/zlib/deflate.h b/sys/contrib/zlib/deflate.h
index 300c6ada62b8..df76fc6fc5d1 100644
--- a/sys/contrib/zlib/deflate.h
+++ b/sys/contrib/zlib/deflate.h
@@ -25,7 +25,7 @@
 
 /* define LIT_MEM to slightly increase the speed of deflate (order 1% to 2%) at
    the cost of a larger memory footprint */
-/* #define LIT_MEM */
+#define LIT_MEM
 
 /* ===========================================================================
  * Internal compression state.