1
0
mirror of https://github.com/facebook/zstd.git synced 2025-03-06 16:56:49 +02:00

clarify when to use '--single-thread' with '--patch-from'

Using '--single-thread' with '--patch-from' on compression levels above 15 will lead to significantly worse compression ratios.

Corrected the man page not suggest anymore to do this.
This commit is contained in:
@RubenKelevra 2024-07-07 19:43:49 +02:00 committed by GitHub
parent ab02fd342f
commit b320d096a4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -174,8 +174,10 @@ the last one takes effect.
(_fileLog_ being the _windowLog_ required to cover the whole file). You
can also manually force it.
Note: for all levels, you can use `--patch-from` in `--single-thread` mode
to improve compression ratio at the cost of speed.
Note: up to level 15, you can use `--patch-from` in `--single-thread` mode
to improve compression ratio marginally at the cost of speed. Using
'--single-thread' above level 15 will lead to lower compression
ratios.
Note: for level 19, you can get increased compression ratio at the cost
of speed by specifying `--zstd=targetLength=` to be something large