[pzstd] Reduce memory usage to 60-75% of previous

dev
Nick Terrell 2016-09-21 15:12:23 -07:00
parent 254c5b1692
commit 1c209a4feb
1 changed files with 1 additions and 1 deletions

View File

@ -61,7 +61,7 @@ static size_t handleOneInput(const Options &options,
auto inputSize = fileSizeOrZero(inputFile);
// WorkQueue outlives ThreadPool so in the case of error we are certain
// we don't accidently try to call push() on it after it is destroyed.
WorkQueue<std::shared_ptr<BufferWorkQueue>> outs{2 * options.numThreads};
WorkQueue<std::shared_ptr<BufferWorkQueue>> outs{options.numThreads + 1};
size_t bytesWritten;
{
// Initialize the thread pool with numThreads + 1