diff options
author | Conrad Meyer <cem@FreeBSD.org> | 2020-12-25 00:21:42 +0000 |
---|---|---|
committer | Conrad Meyer <cem@FreeBSD.org> | 2020-12-25 00:21:42 +0000 |
commit | f6ae97673c28bdb9ae795bd235ab6f26f2536a2d (patch) | |
tree | 5d30f2600c2dd431f58b30b77f27b80019768627 /examples/streaming_compression.c | |
parent | bc64b5ce191d48b503e4fad8c0cefb774a2fa969 (diff) |
Diffstat (limited to 'examples/streaming_compression.c')
-rw-r--r-- | examples/streaming_compression.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/examples/streaming_compression.c b/examples/streaming_compression.c index f0f1065b1d27..045437f2873d 100644 --- a/examples/streaming_compression.c +++ b/examples/streaming_compression.c @@ -39,6 +39,7 @@ static void compressFile_orDie(const char* fname, const char* outName, int cLeve */ CHECK_ZSTD( ZSTD_CCtx_setParameter(cctx, ZSTD_c_compressionLevel, cLevel) ); CHECK_ZSTD( ZSTD_CCtx_setParameter(cctx, ZSTD_c_checksumFlag, 1) ); + ZSTD_CCtx_setParameter(cctx, ZSTD_c_nbWorkers, 4); /* This loop read from the input file, compresses that entire chunk, * and writes all output produced to the output file. |