From c2becfafdded5c619c2da5ff8783b4a0b8a1a513 Mon Sep 17 00:00:00 2001 From: Fahrzin Hemmati Date: Mon, 6 Jan 2025 12:34:42 -0800 Subject: [PATCH] Use all processors when installing zstd (#11067) Speeds up my builds from 93s to 37s (four core) for the install-zstd.sh step --- images/ubuntu/scripts/build/install-zstd.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/images/ubuntu/scripts/build/install-zstd.sh b/images/ubuntu/scripts/build/install-zstd.sh index 1f26c243..67ff4f6f 100644 --- a/images/ubuntu/scripts/build/install-zstd.sh +++ b/images/ubuntu/scripts/build/install-zstd.sh @@ -22,8 +22,8 @@ use_checksum_comparison "$archive_path" "$external_hash" apt-get install liblz4-dev tar xzf "$archive_path" -C /tmp -make -C "/tmp/${release_name}/contrib/pzstd" all -make -C "/tmp/${release_name}" zstd-release +make -C "/tmp/${release_name}/contrib/pzstd" -j $(nproc) all +make -C "/tmp/${release_name}" -j $(nproc) zstd-release for copyprocess in zstd zstdless zstdgrep; do cp "/tmp/${release_name}/programs/${copyprocess}" /usr/local/bin/