[lkml]   [2003]   [Jun]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
Patch in this message
Subject[PATCH] 2.4.21 zlib changes #1 memlevel
Reduce MAX_MEM_LEVEL to 8.  This reduces zlib memory consumption by
128k (from ~400k to ~270k) at the theoretical cost of worse
compression. No code currently in the kernel actually uses the better
compression, so the practical cost is zero.


A victorious army first wins and then seeks battle.
-- Sun Tzu

--- linux-2.4.20/include/linux/zconf.h~zlib_memlevel 2002-11-29 00:53:15.000000000 +0100
+++ linux-2.4.20/include/linux/zconf.h 2003-06-10 17:01:16.000000000 +0200
@@ -35,7 +35,7 @@

/* Maximum value for memLevel in deflateInit2 */
-# define MAX_MEM_LEVEL 9
+# define MAX_MEM_LEVEL 8

/* Maximum value for windowBits in deflateInit2 and inflateInit2.
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at
 \ /
  Last update: 2005-03-22 13:36    [W:0.037 / U:2.380 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site