Skip to content

Commit

Permalink
adjust README to indicate zstd runs in parallel, remove leftover code…
Browse files Browse the repository at this point in the history
… comment
  • Loading branch information
nalabrie authored and marcospb19 committed Jul 27, 2024
1 parent 01b9190 commit 3867fa3
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ Output:

| Format | `.tar` | `.zip` | `7z` | `.gz` | `.xz`, `.lzma` | `.bz`, `.bz2` | `.lz4` | `.sz` (Snappy) | `.zst` | `.rar` |
|:---------:|:---:|:---:|:---:|:---:|:---:|:---:|:---:|:---:|:---:|:---:|
| Supported || ✓¹ | ✓¹ | ✓² |||| ✓² || ✓³ |
| Supported || ✓¹ | ✓¹ | ✓² |||| ✓² |² | ✓³ |

✓: Supports compression and decompression.

Expand Down
3 changes: 0 additions & 3 deletions src/commands/compress.rs
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,6 @@ pub fn compress_files(
)?;
// Use all available PHYSICAL cores for compression
zstd_encoder.multithread(num_cpus::get_physical() as u32)?;
// Safety:
// Encoder::new() can only fail if `level` is invalid, but the level
// is `clamp`ed and therefore guaranteed to be valid
Box::new(zstd_encoder.auto_finish())
}
Tar | Zip | Rar | SevenZip => unreachable!(),
Expand Down

0 comments on commit 3867fa3

Please sign in to comment.