Skip to content

Commit 1ebd199

Browse files
committed
Packaging: speed up el8 package build using zstd compression
There was a multi-minute difference between el8 and el9. The compression algorithm is the only significant difference, so I timed building the same el8 package with different algorithms. - xz and lzma were the slowest at over 3 minutes. - gzip and zstd were the fastest at under 1 minute (at any level). The size differences were marginal, but zstd:best was the closest match in size to xz, so I used that to keep the package size as small as possible while speeding up the package build process.
1 parent 2cf9ea1 commit 1ebd199

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

packaging/BUILD

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,8 @@ nfpm_rpm_package(
101101
vendor="The StackStorm Project",
102102
packager=_maintainer,
103103
# group="System/Management", # was only useful for EL 5 and earlier
104+
compression="zstd:best", # xz and lzma are ~3x slower than gzip or zstd
104105
**_common_pkg_metadata,
105-
**_distro("el8", compression="xz"),
106-
**_distro("el9", compression="zstd:default"),
106+
**_distro("el8"),
107+
**_distro("el9"),
107108
)

0 commit comments

Comments
 (0)