slightly increased buffer pool, to cover normal "full load" scenarios
2 buffers per active worker + 1 buffer for input loading + 1 buffer for "next input" when submitting current one + 1 buffer stuck in queue
This commit is contained in:
@@ -1,6 +1,7 @@
|
|||||||
v1.3.1
|
v1.3.1
|
||||||
|
perf: substantially decreased memory usage in Multi-threading mode, thanks to reports by Tino Reichardt
|
||||||
build: fix Visual compilation for non x86/x64 targets, reported by Greg Slazinski (#718)
|
build: fix Visual compilation for non x86/x64 targets, reported by Greg Slazinski (#718)
|
||||||
API exp : breaking change : ZSTD_getframeHeader()
|
API exp : breaking change : ZSTD_getframeHeader() provides more information
|
||||||
|
|
||||||
v1.3.0
|
v1.3.0
|
||||||
cli : new : `--list` command, by Paul Cruz
|
cli : new : `--list` command, by Paul Cruz
|
||||||
|
|||||||
@@ -93,7 +93,7 @@ typedef struct ZSTDMT_bufferPool_s {
|
|||||||
|
|
||||||
static ZSTDMT_bufferPool* ZSTDMT_createBufferPool(unsigned nbThreads, ZSTD_customMem cMem)
|
static ZSTDMT_bufferPool* ZSTDMT_createBufferPool(unsigned nbThreads, ZSTD_customMem cMem)
|
||||||
{
|
{
|
||||||
unsigned const maxNbBuffers = 2*nbThreads + 2;
|
unsigned const maxNbBuffers = 2*nbThreads + 3;
|
||||||
ZSTDMT_bufferPool* const bufPool = (ZSTDMT_bufferPool*)ZSTD_calloc(
|
ZSTDMT_bufferPool* const bufPool = (ZSTDMT_bufferPool*)ZSTD_calloc(
|
||||||
sizeof(ZSTDMT_bufferPool) + (maxNbBuffers-1) * sizeof(buffer_t), cMem);
|
sizeof(ZSTDMT_bufferPool) + (maxNbBuffers-1) * sizeof(buffer_t), cMem);
|
||||||
if (bufPool==NULL) return NULL;
|
if (bufPool==NULL) return NULL;
|
||||||
|
|||||||
Reference in New Issue
Block a user