Make ALL decompression use temporary in-ram buffer whenever possible.

This commit is contained in:
Con Kolivas 2011-03-14 12:48:40 +11:00
parent 27d7c2a031
commit 9e772d3140
6 changed files with 50 additions and 38 deletions

5
main.c
View file

@ -698,8 +698,9 @@ int main(int argc, char *argv[])
}
}
/* Use less ram when using STDOUT to store the temporary output file */
if (STDOUT)
/* Use less ram when using STDOUT to store the temporary output
* file. */
if (STDOUT && !(DECOMPRESS || TEST_ONLY))
control.maxram = control.ramsize * 2 / 9;
else
control.maxram = control.ramsize / 3;