]> git.ipfire.org Git - thirdparty/libarchive.git/commit
Improved control over frame size in zstd filter. (#2081)
authorDag-Erling Smørgrav <des@des.no>
Sat, 23 Mar 2024 00:35:29 +0000 (01:35 +0100)
committerGitHub <noreply@github.com>
Sat, 23 Mar 2024 00:35:29 +0000 (17:35 -0700)
commitac417cce0ca752aa85d4453c9e697a66f8545bc7
treee0b43b0e4f288946d1a8832a3c6e5b6b2d3078cd
parentd33b939d51b04b14fa69e8710a728b94732dfefe
Improved control over frame size in zstd filter. (#2081)

Instead of just `min-frame-size` and `max-frame-size`, we now have four
separate options:

* `min-frame-in` delays the creation of a new frame on flush until the
uncompressed size of the current frame passes a certain threshold.

* `min-frame-out` delays the creation of a new frame on flush until the
compressed size of the current frame passes a certain threshold.

* `max-frame-in` forces the creation of a new frame as soon as possible
after the uncompressed size of the current frame reaches a certain
limit.

* `max-frame-out` forces the creation of a new frame as soon as possible
after the compressed size of the current frame reaches a certain limit.

We now also support `k`, `kB`, `M`, `MB`, `G` and `GB` suffixes for all
four options.

The old options are retained as aliases for the corresponding new
options.
libarchive/archive_write_add_filter_zstd.c
libarchive/test/test_write_filter_zstd.c
tar/bsdtar.1