Skip to content

Commit 5b29b6f

Browse files
Jörn EngelLinus Torvalds
authored andcommitted
[PATCH] zlib changes: 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.
1 parent ab7c828 commit 5b29b6f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/linux/zconf.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323

2424
/* Maximum value for memLevel in deflateInit2 */
2525
#ifndef MAX_MEM_LEVEL
26-
# define MAX_MEM_LEVEL 9
26+
# define MAX_MEM_LEVEL 8
2727
#endif
2828

2929
/* Maximum value for windowBits in deflateInit2 and inflateInit2.

0 commit comments

Comments
 (0)