From 9499a7b45322e4c3a3b65a32dfd16261b9c23e84 Mon Sep 17 00:00:00 2001 From: ckolivas Date: Tue, 8 Mar 2011 08:24:05 +1100 Subject: [PATCH] STDOUT does not affect the compression window in master branch. --- main.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/main.c b/main.c index 994e649..86adc9f 100644 --- a/main.c +++ b/main.c @@ -766,12 +766,9 @@ static void show_summary(void) temp_ramsize = control.ramsize; if (BITS32) temp_ramsize = MAX(temp_ramsize - 900000000ll, 900000000ll); - if (STDIN || STDOUT) { - if (STDIN && STDOUT) - temp_chunk = temp_ramsize * 2 / 9; - else - temp_chunk = temp_ramsize / 3; - } else + if (STDIN) + temp_chunk = temp_ramsize / 3; + else temp_chunk = temp_ramsize / 3 * 2; temp_window = temp_chunk / (100 * 1024 * 1024); print_verbose("Heuristically Computed Compression Window: %lld = %lldMB\n", temp_window, temp_window * 100ull);