From: Danielle Rozenblit Date: Fri, 14 Oct 2022 18:29:32 +0000 (-0700) Subject: Update threshold to use optimal depth X-Git-Tag: v1.5.4^2~66^2~11 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c4853e1553b9582e5c230b8b2621fc6983814cec;p=thirdparty%2Fzstd.git Update threshold to use optimal depth --- diff --git a/lib/common/huf.h b/lib/common/huf.h index 5f33d6550..4e947208e 100644 --- a/lib/common/huf.h +++ b/lib/common/huf.h @@ -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**/