mirror of
https://github.com/facebook/zstd.git
synced 2025-07-29 11:21:22 +03:00
--ultra automatically triggered with --long and --patch-from
the purpose of --ultra is to make the user explicitly opt-in to generate very large window size (> 8 MB). The agreement to generate very large window size is already implicit when selecting --long or --patch-from. Consequently, `--ultra ` is automatically enabled when `--long` or `--patch-from` is set.
This commit is contained in:
@ -1082,10 +1082,11 @@ int main(int argCount, const char* argv[])
|
|||||||
#ifndef ZSTD_NOTRACE
|
#ifndef ZSTD_NOTRACE
|
||||||
if (longCommandWArg(&argument, "--trace")) { char const* traceFile; NEXT_FIELD(traceFile); TRACE_enable(traceFile); continue; }
|
if (longCommandWArg(&argument, "--trace")) { char const* traceFile; NEXT_FIELD(traceFile); TRACE_enable(traceFile); continue; }
|
||||||
#endif
|
#endif
|
||||||
if (longCommandWArg(&argument, "--patch-from")) { NEXT_FIELD(patchFromDictFileName); continue; }
|
if (longCommandWArg(&argument, "--patch-from")) { NEXT_FIELD(patchFromDictFileName); ultra = 1; continue; }
|
||||||
if (longCommandWArg(&argument, "--long")) {
|
if (longCommandWArg(&argument, "--long")) {
|
||||||
unsigned ldmWindowLog = 0;
|
unsigned ldmWindowLog = 0;
|
||||||
ldmFlag = 1;
|
ldmFlag = 1;
|
||||||
|
ultra = 1;
|
||||||
/* Parse optional window log */
|
/* Parse optional window log */
|
||||||
if (*argument == '=') {
|
if (*argument == '=') {
|
||||||
++argument;
|
++argument;
|
||||||
|
Reference in New Issue
Block a user