abuild.in: add multithreaded compression
The 'Compressing data' step takes a significant amount of time when packaging software with huge binaries, like Kubernetes. This can certainly be shortened using multithreaded compression, like 'pigz'.
This commit is contained in:
parent
100202920b
commit
0bfe4efa99
@ -1451,6 +1451,7 @@ human_size() {
|
||||
|
||||
create_apks() {
|
||||
local file= dir= name= ver= apk= datadir= size=
|
||||
local gzip=$(command -v pigz || echo gzip)
|
||||
getpkgver || return 1
|
||||
if ! options_has "!tracedeps"; then
|
||||
for file in "$pkgbasedir"/.control.*/.PKGINFO; do
|
||||
@ -1487,7 +1488,7 @@ create_apks() {
|
||||
touch .dummy
|
||||
set -- .dummy
|
||||
fi
|
||||
tar --xattrs -f - -c "$@" | abuild-tar --hash | gzip -9 >"$dir"/data.tar.gz
|
||||
tar --xattrs -f - -c "$@" | abuild-tar --hash | $gzip -9 >"$dir"/data.tar.gz
|
||||
|
||||
msg "Create checksum..."
|
||||
# append the hash for data.tar.gz
|
||||
|
Loading…
x
Reference in New Issue
Block a user