]> git.ipfire.org Git - thirdparty/zlib-ng.git/commitdiff
Increase size of gzip output buffer to be a multiple of the size of deflate's pending...
authorNathan Moinvaziri <nathan@nathanm.com>
Tue, 9 Mar 2021 18:18:24 +0000 (10:18 -0800)
committerHans Kristian Rosbach <hk-github@circlestorm.org>
Sat, 12 Jun 2021 18:16:45 +0000 (20:16 +0200)
CMakeLists.txt
gzguts.h

index ae656ae05a6cb076f544dbb1a6a8518d46f109c5..9462652893f32cc0394884c891b14ed7ed5a77b5 100644 (file)
@@ -749,7 +749,6 @@ if(WITH_OPTIM)
     elseif(BASEARCH_S360_FOUND)
         if(WITH_DFLTCC_DEFLATE OR WITH_DFLTCC_INFLATE)
             list(APPEND ZLIB_ARCH_SRCS ${ARCHDIR}/dfltcc_common.c)
-            add_definitions(-DGZBUFSIZE=262144)
         endif()
         if(WITH_DFLTCC_DEFLATE)
             add_definitions(-DS390_DFLTCC_DEFLATE)
index 16029607f7c4981360b09dae59f4a392548f741c..c42587470ec99e3fc7e46ae1f196c63d77e39665 100644 (file)
--- a/gzguts.h
+++ b/gzguts.h
@@ -88,7 +88,7 @@
 /* default i/o buffer size -- double this for output when reading (this and
    twice this must be able to fit in an unsigned type) */
 #ifndef GZBUFSIZE
-#  define GZBUFSIZE 8192
+#  define GZBUFSIZE 131072
 #endif
 
 /* gzip modes, also provide a little integrity check on the passed structure */