reduced pool queue to 0 to save memory

fixed : pool performance when jobs are fires fast and queueSize==0
This commit is contained in:
Yann Collet committed 2017-08-19 15:07:54 -07:00
1 parent f7312a7cb4
commit 7db552676e
3 files changed
+9 -10

No files matched your search

+1 -1
View File
@@ -426,7 +426,7 @@ ZSTDMT_CCtx* ZSTDMT_createCCtx_advanced(unsigned nbThreads, ZSTD_customMem cMem)
mtctx->allJobsCompleted = 1;
mtctx->sectionSize = 0;
mtctx->overlapLog = ZSTDMT_OVERLAPLOG_DEFAULT;
mtctx->factory = POOL_create(nbThreads, 1);
mtctx->factory = POOL_create(nbThreads, 0);
mtctx->jobs = ZSTDMT_allocJobsTable(&nbJobs, cMem);
mtctx->jobIDMask = nbJobs - 1;
mtctx->bufPool = ZSTDMT_createBufferPool(nbThreads, cMem);