Skip to content

Commit 4153fa0

Browse files
committed
Update comment on not using --long for compression for zstd
1 parent 3148afd commit 4153fa0

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/xopen/__init__.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -517,10 +517,10 @@ def _open_zst(
517517
# zstd can compress using multiple cores
518518
program_args: Tuple[str, ...] = ("zstd",)
519519
if "r" in mode:
520-
# Only use --long=31 for decompression. Otherwise compression
521-
# will always use a very long window size, which will result
522-
# in very long compute times and the resulting archive not
523-
# openable by other tools without extra settings.
520+
# Only use --long=31 for decompression. Using it for
521+
# compression overrides level settings for window size and
522+
# forces other zstd users to use `--long=31` to decompress any
523+
# archive that has been compressed by xopen.
524524
program_args += (f"--long={max_window_bits}",)
525525
return _PipedCompressionProgram(
526526
filename,

0 commit comments

Comments
 (0)