From: Michael Tremer Date: Sat, 15 Feb 2025 12:04:21 +0000 (+0000) Subject: archive writer: Don't compress in parallel X-Git-Tag: 0.9.30~29 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=acf52406923760613eee7d6e3179b09abe6cdf6a;p=pakfire.git archive writer: Don't compress in parallel There is almost no speed benefit here because most packages are rather small so that Zstandard does not fan out. The result will however be a couple of percent larger which is something we don't want. Signed-off-by: Michael Tremer --- diff --git a/src/pakfire/archive_writer.c b/src/pakfire/archive_writer.c index f48f16b6..493e05a9 100644 --- a/src/pakfire/archive_writer.c +++ b/src/pakfire/archive_writer.c @@ -219,25 +219,6 @@ static int pakfire_archive_writer_setup_archive(struct pakfire_archive_writer* s return -ENOTSUP; } #endif /* ARCHIVE_VERSION_NUMBER >= 3007002 */ - -#if ARCHIVE_VERSION_NUMBER >= 3006000 - // Fetch numbers of processors - long processors = sysconf(_SC_NPROCESSORS_ONLN); - - if (processors > 1) { - r = pakfire_string_format(value, "%ld", processors); - if (r) - return r; - - // Try using multiple threads - r = archive_write_set_filter_option(self->archive, NULL, "threads", value); - if (r) { - ERROR(self->ctx, "Could not enable %ld threads for compression: %s\n", - processors, archive_error_string(self->archive)); - return -ENOTSUP; - } - } -#endif break; }