From 31c3f7d43880210f8056e4484b441e5f30500184 Mon Sep 17 00:00:00 2001 From: "Max P." Date: Thu, 27 Nov 2025 19:57:30 +0100 Subject: [PATCH] feat(archive): enable multithreaded zstd compression --- src/repocat/cli/archive.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/repocat/cli/archive.py b/src/repocat/cli/archive.py index 2018145..d3f726f 100644 --- a/src/repocat/cli/archive.py +++ b/src/repocat/cli/archive.py @@ -28,7 +28,7 @@ def archive_repo(source: Path, target_dir: Path, dry_run: bool) -> Path: return archive_path with open(archive_path, "wb") as f: - cctx = zstandard.ZstdCompressor(level=20) + cctx = zstandard.ZstdCompressor(level=20, threads=-1) with cctx.stream_writer(f) as compressor: with tarfile.open(fileobj=compressor, mode="w|") as tar: tar.add(source, arcname=source.name)