]> git.ipfire.org Git - thirdparty/libarchive.git/commit
zstd: Implement core detection (#2083)
authorDag-Erling Smørgrav <des@des.no>
Mon, 4 Mar 2024 10:37:14 +0000 (11:37 +0100)
committerMartin Matuska <martin@matuska.de>
Tue, 23 Apr 2024 13:11:40 +0000 (15:11 +0200)
commit3efcadf8865efa2e0c5d44606efda87bfd4835fe
tree4c7edb5f9fb80620df5b62cd0ca306ccf69a3e8a
parenta69a4537a6acd7b6f798ae6c7a0a35b4e1a7bd43
zstd: Implement core detection (#2083)

The bsdtar manual page claims that setting zstd:threads to 0 tells zstd
to use as many threads as there are cores in the system, but it actually
disables multi-threading.  Replace 0 with the number of configured
processors.

While here, add a previously missing overflow check.

Co-authored-by: Martin Matuska <martin@matuska.de>
CMakeLists.txt
build/cmake/config.h.in
configure.ac
libarchive/archive_write_add_filter_zstd.c
tar/bsdtar.1