diff options
-rw-r--r-- | archival/Config.src | 10 | ||||
-rw-r--r-- | archival/gzip.c | 6 |
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 | |||
187 | help | 187 | help |
188 | Enable use of long options, increases size by about 106 Bytes | 188 | Enable use of long options, increases size by about 106 Bytes |
189 | 189 | ||
190 | config GZIP_BIG_MEM | ||
191 | bool "Trade memory for gzip speed" | ||
192 | default n | ||
193 | depends on GZIP | ||
194 | help | ||
195 | Enable big memory options for gzip, including larger I/O | ||
196 | buffers and bigger hash tables. Faster, but uses at least | ||
197 | twice as much memory. Select if speed is more important than | ||
198 | memory use. | ||
199 | |||
190 | config LZOP | 200 | config LZOP |
191 | bool "lzop" | 201 | bool "lzop" |
192 | default y | 202 | 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 | |||
81 | 81 | ||
82 | /* =========================================================================== | 82 | /* =========================================================================== |
83 | */ | 83 | */ |
84 | #define SMALL_MEM | 84 | #if ENABLE_GZIP_BIG_MEM |
85 | # define BIG_MEM | ||
86 | #else | ||
87 | # define SMALL_MEM | ||
88 | #endif | ||
85 | 89 | ||
86 | #ifndef INBUFSIZ | 90 | #ifndef INBUFSIZ |
87 | # ifdef SMALL_MEM | 91 | # ifdef SMALL_MEM |