From 982830b081d53a8fdffeef61def75fd7150a6e12 Mon Sep 17 00:00:00 2001 From: Bimba Shrestha Date: Thu, 14 Nov 2019 10:48:55 -0800 Subject: [PATCH 1/2] Fixing hashLog error 2^26=64Mib --- programs/zstd.1.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/programs/zstd.1.md b/programs/zstd.1.md index e3daa4c8..5ea7fd89 100644 --- a/programs/zstd.1.md +++ b/programs/zstd.1.md @@ -402,7 +402,7 @@ The list of available _options_: Bigger hash tables cause less collisions which usually makes compression faster, but requires more memory during compression. - The minimum _hlog_ is 6 (64 B) and the maximum is 26 (128 MiB). + The minimum _hlog_ is 6 (64 B) and the maximum is 26 (64 MiB). - `chainLog`=_clog_, `clog`=_clog_: Specify the maximum number of bits for a hash chain or a binary tree. From b032a6e1d917489c64726bae72198b276691d0ad Mon Sep 17 00:00:00 2001 From: Bimba Shrestha Date: Tue, 19 Nov 2019 09:55:13 -0800 Subject: [PATCH 2/2] Updated some more outdated bounds --- programs/zstd.1.md | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/programs/zstd.1.md b/programs/zstd.1.md index 5ea7fd89..3295b849 100644 --- a/programs/zstd.1.md +++ b/programs/zstd.1.md @@ -402,7 +402,7 @@ The list of available _options_: Bigger hash tables cause less collisions which usually makes compression faster, but requires more memory during compression. - The minimum _hlog_ is 6 (64 B) and the maximum is 26 (64 MiB). + The minimum _hlog_ is 6 (64 B) and the maximum is 30 (1 GiB). - `chainLog`=_clog_, `clog`=_clog_: Specify the maximum number of bits for a hash chain or a binary tree. @@ -413,7 +413,8 @@ The list of available _options_: compression. This option is ignored for the ZSTD_fast strategy. - The minimum _clog_ is 6 (64 B) and the maximum is 28 (256 MiB). + The minimum _clog_ is 6 (64 B) and the maximum is 29 (524 Mib) on 32-bit platforms + and 30 (1 Gib) on 64-bit platforms. - `searchLog`=_slog_, `slog`=_slog_: Specify the maximum number of searches in a hash chain or a binary tree @@ -422,7 +423,7 @@ The list of available _options_: More searches increases the chance to find a match which usually increases compression ratio but decreases compression speed. - The minimum _slog_ is 1 and the maximum is 26. + The minimum _slog_ is 1 and the maximum is 'windowLog' - 1. - `minMatch`=_mml_, `mml`=_mml_: Specify the minimum searched length of a match in a hash table. @@ -447,7 +448,7 @@ The list of available _options_: For all other strategies, this field has no impact. - The minimum _tlen_ is 0 and the maximum is 999. + The minimum _tlen_ is 0 and the maximum is 128 Kib. - `overlapLog`=_ovlog_, `ovlog`=_ovlog_: Determine `overlapSize`, amount of data reloaded from previous job. @@ -470,7 +471,7 @@ The list of available _options_: Bigger hash tables usually improve compression ratio at the expense of more memory during compression and a decrease in compression speed. - The minimum _lhlog_ is 6 and the maximum is 26 (default: 20). + The minimum _lhlog_ is 6 and the maximum is 30 (default: 20). - `ldmMinMatch`=_lmml_, `lmml`=_lmml_: Specify the minimum searched length of a match for long distance matching. @@ -490,7 +491,7 @@ The list of available _options_: Larger bucket sizes improve collision resolution but decrease compression speed. - The minimum _lblog_ is 0 and the maximum is 8 (default: 3). + The minimum _lblog_ is 1 and the maximum is 8 (default: 3). - `ldmHashRateLog`=_lhrlog_, `lhrlog`=_lhrlog_: Specify the frequency of inserting entries into the long distance matching