Skip to content

Commit 654ed69

Browse files
committed
feature/compress: attempt to detect and use the number of physical CPU cores
Signed-off-by: Alexey Gladkov <[email protected]>
1 parent 29f44ad commit 654ed69

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

features/compress/bin/compress-image

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@ case "$compress_method" in
88
gzip|gz) set -- gzip --best ;;
99
bzip2|bz2) set -- bzip2 --best ;;
1010
lz4) set -- lz4 --best ;;
11-
lzma) set -- lzma --best ;;
11+
lzma) set -- lzma --best -T0 ;;
1212
lzo) set -- lzop --best ;;
13-
xz) set -- xz --best --check=crc32 ;;
14-
zstd) set -- zstd -19 ;;
13+
xz) set -- xz --best --check=crc32 -T0 ;;
14+
zstd) set -- zstd -19 -T0 ;;
1515
'') exit 0 ;;
1616
*) fatal "Unknown compress method: $compress_method"
1717
esac

0 commit comments

Comments
 (0)