[PATCH] 2.4.21 zlib changes #1 memlevel

From: Jörn Engel (joern@wohnheim.fh-wedel.de)
Date: Sat Jun 14 2003 - 08:51:33 EST


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.

Jörn

-- 
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 */ #ifndef MAX_MEM_LEVEL -# define MAX_MEM_LEVEL 9 +# define MAX_MEM_LEVEL 8 #endif /* 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 majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Sun Jun 15 2003 - 22:00:39 EST