From 0891be9c1b318adb1f40f3fc51bccb706eda1fe0 Mon Sep 17 00:00:00 2001 From: "A. Wilcox" Date: Fri, 27 Oct 2023 01:05:40 -0500 Subject: image: Tar backend: Enable xz threading support This should enable tarballs to be created significantly faster on systems with more than one processor. --- image/backends/tar.cc | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'image/backends/tar.cc') diff --git a/image/backends/tar.cc b/image/backends/tar.cc index d9c2248..b05f4a5 100644 --- a/image/backends/tar.cc +++ b/image/backends/tar.cc @@ -64,6 +64,11 @@ public: break; case XZ: archive_write_add_filter_xz(a); + res = archive_write_set_filter_option(a, "xz", "threads", "0"); + if(res < ARCHIVE_OK) { + output_warning("tar backend", "could not enable xz threading", + archive_error_string(a)); + } break; } -- cgit v1.2.3-60-g2f50