adjust README to indicate zstd runs in parallel, remove leftover code comment

This commit is contained in:
nalabrie 2024-07-16 21:09:05 -04:00
parent f0b4702960
commit 7886536e48
No known key found for this signature in database
GPG Key ID: 0ADD552B31BF3991
2 changed files with 1 additions and 4 deletions

View File

@ -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.

View File

@ -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!(),