Enabling the config option on my standard linux box and zipping a
random 250mb file:
small mem: 21.85user 0.44system 0:22.35elapsed
big mem: 13.45user 0.46system 0:13.94elapsed
Signed-off-by: Ian Wienand <ianw@vmware.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
help
Enable use of long options, increases size by about 106 Bytes
+config GZIP_BIG_MEM
+ bool "Trade memory for gzip speed"
+ default n
+ depends on GZIP
+ help
+ Enable big memory options for gzip, including larger I/O
+ buffers and bigger hash tables. Faster, but uses at least
+ twice as much memory. Select if speed is more important than
+ memory use.
+
config LZOP
bool "lzop"
default y
/* ===========================================================================
*/
-#define SMALL_MEM
+#if ENABLE_GZIP_BIG_MEM
+# define BIG_MEM
+#else
+# define SMALL_MEM
+#endif
#ifndef INBUFSIZ
# ifdef SMALL_MEM