It compresses a tar archive with Zstandard (https://github.com/facebook/zstd) keeping each file in a different frame, unless
-s is used.
This allows fast seeking and extraction of a single file without decompressing the whole archive.
-s SIZE is used and a file is added, if the size of the file is less than
SIZE then another one will be added in the same block, and so on until the sum of the sizes of all files packed together is at least
A file will be never truncated as
SIZE is just a minimum value.
A single block of one or more files is compressed into a single Zstandard frame. If the files in the same block are correlatable the compression ratio will be higher.
The compressed archive can be uncompressed with any Zstandard tool, including
To take advantage of seeking see the following projects:
- C/C++ library: libzstd-seek - https://github.com/martinellimarco/libzstd-seek
- Python library: indexed_zstd - https://github.com/martinellimarco/indexed_zstd
- FUSE mount: ratarmount - https://github.com/mxmlnkn/ratarmount
Source code available at https://github.com/martinellimarco/t2sz