change rpm compression algorithm to multi threaded xz

Desktop / LibreOffice - Andras Timar [collabora.com] - 23 January 2022 14:13 UTC

Our baseline is CentOS 7, it's safe to switch to xz that is supported there. Here is my measurement on rpm package build time and package size on a 48 core machine, however 48 cores were never used (8-10 max). Compared to reference w9.gzdio which was used before the patch.

Compression Build Package method time % size % w9.gzdio 100% 100% w7T.xzdio 69% 66% w6T.xzdio 62% 67% w5T.xzdio 55% 67% w4T.xzdio 41% 70% w3T.xzdio 31% 73% w2T.xzdio 26% 75% w1T.xzdio 24% 77%

Conclusion: we'd like to optimize rather for the build time, therefore w1T.xzdio was picked. The package size was still smaller than the reference size, and the build time was 4x faster (in this measurement 18m16 -> 4m26). That makes a difference.

Change-Id: Iabb532628d38a2d5091fa41fd08bfee69007d0ca Reviewed-on: https://gerrit.libreoffice.org/c/core/+/128800

a244beeed618 change rpm compression algorithm to multi threaded xz
solenv/bin/modules/installer/epmfile.pm | 2 +-
sysui/desktop/freedesktop/freedesktop-menus.spec | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)

Upstream: cgit.freedesktop.org


  • Share