]> git.ipfire.org Git - thirdparty/zstd.git/commitdiff
Document ldm enabled by default in zstd.h
authorsenhuang42 <senhuang96@fb.com>
Mon, 19 Oct 2020 15:02:29 +0000 (11:02 -0400)
committersenhuang42 <senhuang96@fb.com>
Mon, 19 Oct 2020 15:02:29 +0000 (11:02 -0400)
lib/zstd.h

index 75d5bb237119321918075c34e7acd48e0c9c2c25..733595d9c14c1f56101b3ffd657815dd80e1c9e0 100644 (file)
@@ -339,7 +339,9 @@ typedef enum {
                                      * for large inputs, by finding large matches at long distance.
                                      * It increases memory usage and window size.
                                      * Note: enabling this parameter increases default ZSTD_c_windowLog to 128 MB
-                                     * except when expressly set to a different value. */
+                                     * except when expressly set to a different value. 
+                                     * Note: will be enabled by default if ZSTD_c_windowLog >= 128 MB and
+                                     * compression strategy >= ZSTD_btopt (== compression level 16+) */
     ZSTD_c_ldmHashLog=161,   /* Size of the table for long distance matching, as a power of 2.
                               * Larger values increase memory usage and compression ratio,
                               * but decrease compression speed.