]> git.ipfire.org Git - thirdparty/zstd.git/commitdiff
Fix documentation about memory usage 525/head
authorNick Terrell <terrelln@fb.com>
Sat, 28 Jan 2017 02:43:05 +0000 (18:43 -0800)
committerNick Terrell <terrelln@fb.com>
Sat, 28 Jan 2017 02:43:05 +0000 (18:43 -0800)
lib/dictBuilder/zdict.h

index aba538c489eee620b4a12bcd6e41a612724fca72..4d0a62a2c5f28943d8a17ca1f1d6c9340a96f63b 100644 (file)
@@ -133,7 +133,7 @@ ZDICTLIB_API size_t COVER_trainFromBuffer(void* dictBuffer, size_t dictBufferCap
     @return : size of dictionary stored into `dictBuffer` (<= `dictBufferCapacity`)
               or an error code, which can be tested with ZDICT_isError().
               On success `*parameters` contains the parameters selected.
-    Note : COVER_optimizeTrainFromBuffer() requires about 4 bytes of memory for each input byte and additionally another 4 bytes of memory for each byte of memory for each tread.
+    Note : COVER_optimizeTrainFromBuffer() requires about 8 bytes of memory for each input byte and additionally another 5 bytes of memory for each byte of memory for each thread.
 */
 ZDICTLIB_API size_t COVER_optimizeTrainFromBuffer(void* dictBuffer, size_t dictBufferCapacity,
                                      const void* samplesBuffer, const size_t *samplesSizes, unsigned nbSamples,