aboutsummaryrefslogtreecommitdiff
path: root/archival
diff options
context:
space:
mode:
Diffstat (limited to 'archival')
-rw-r--r--archival/Config.src10
-rw-r--r--archival/gzip.c6
2 files changed, 15 insertions, 1 deletions
diff --git a/archival/Config.src b/archival/Config.src
index 81788ecd9..9f4908178 100644
--- a/archival/Config.src
+++ b/archival/Config.src
@@ -187,6 +187,16 @@ config FEATURE_GZIP_LONG_OPTIONS
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
diff --git a/archival/gzip.c b/archival/gzip.c
index 403eb4dcb..0e0b68142 100644
--- a/archival/gzip.c
+++ b/archival/gzip.c
@@ -81,7 +81,11 @@ aa: 85.1% -- replaced with aa.gz
/* ===========================================================================
*/
-#define SMALL_MEM
+#if ENABLE_GZIP_BIG_MEM
+# define BIG_MEM
+#else
+# define SMALL_MEM
+#endif
#ifndef INBUFSIZ
# ifdef SMALL_MEM