From 09a765590914ed11c6e0dda2bd7b70d4b145fd4f Mon Sep 17 00:00:00 2001 From: Peter Hyman Date: Thu, 9 Jan 2020 14:14:14 -0600 Subject: [PATCH] Minor update to min Dictionary Size. --- stream.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/stream.c b/stream.c index 65ddfe2..04d3034 100644 --- a/stream.c +++ b/stream.c @@ -965,9 +965,8 @@ void *open_stream_out(rzip_control *control, int f, unsigned int n, i64 chunk_li * memory for backend compression. Leave `limit` alone for now. * First reduce threads, then dictionary size. */ int dict_or_threads = 0; - unsigned DICTSIZEMIN = - (control->dictSize > (1<<13) ? control->dictSize / 2: control->dictSize); // minimum dictionary size - unsigned save_dictSize = control->dictSize; // save dictionary + i64 DICTSIZEMIN = control->dictSize / 2; // minimum dictionary size + i64 save_dictSize = control->dictSize; // save dictionary if (!save_threads) // in cases of multiple chunks, need to restore save_threads = control->threads; // thread count in case it was reduced below else