libarchive: limit threads for xz to max 12
See #11050 for the reasoning to limit the parallelism.
This commit is contained in:
parent
819581a563
commit
f945da4235
|
@ -9,7 +9,7 @@ Enable xz multithreaded compression by default.
|
|||
f->data = data;
|
||||
data->compression_level = LZMA_PRESET_DEFAULT;
|
||||
- data->threads = 1;
|
||||
+ data->threads = lzma_cputhreads();
|
||||
+ data->threads = lzma_cputhreads() > 12 ? 12 : lzma_cputhreads();
|
||||
f->open = &archive_compressor_xz_open;
|
||||
f->close = archive_compressor_xz_close;
|
||||
f->free = archive_compressor_xz_free;
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
# Template file for 'libarchive'
|
||||
pkgname=libarchive
|
||||
version=3.3.2
|
||||
revision=1
|
||||
revision=2
|
||||
bootstrap=yes
|
||||
build_style=gnu-configure
|
||||
configure_args="$(vopt_enable acl) $(vopt_enable acl xattr)
|
||||
|
|
Loading…
Reference in New Issue