]> git.ipfire.org Git - thirdparty/zstd.git/commitdiff
Update threshold to use optimal depth
authorDanielle Rozenblit <drozenblit@fb.com>
Fri, 14 Oct 2022 18:29:32 +0000 (11:29 -0700)
committerDanielle Rozenblit <drozenblit@fb.com>
Fri, 14 Oct 2022 18:29:32 +0000 (11:29 -0700)
lib/common/huf.h

index 5f33d655019c83059bd64d7d8998cc6cf9dbe392..4e947208ed340615a1b5c1f1ac1b32bf25e37168 100644 (file)
@@ -173,7 +173,7 @@ size_t HUF_decompress4X2_DCtx_wksp(HUF_DTable* dctx, void* dst, size_t dstSize,
 /* ****************************************
  *  HUF detailed API
  * ****************************************/
-#define HUF_OPTIMAL_DEPTH_THRESHOLD 1
+#define HUF_OPTIMAL_DEPTH_THRESHOLD ZSTD_btultra
 typedef enum {
    HUF_depth_fast, /** Use heuristic to find the table depth**/
    HUF_depth_optimal /** Test possible table depths to find the one that produces the smallest header + encoded size**/