Skip to content

Commit

Permalink
cmd-compress: use level 10 for zstd compression
Browse files Browse the repository at this point in the history
Based on the discussion in coreos/fedora-coreos-tracker#1660
level 10 seems to give us a good speedup versus size tradeoff.
  • Loading branch information
dustymabe committed May 27, 2024
1 parent 2b7db04 commit 28a26d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cmd-compress
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ def compress_one_builddir(builddir):
if args.compressor == 'xz':
runcmd(['xz', '-c9', f'-T{t}', filepath], stdout=f)
elif args.compressor == 'zstd':
runcmd(['zstd', '-19', '-c', f'-T{t}', filepath], stdout=f)
runcmd(['zstd', '-10', '-c', f'-T{t}', filepath], stdout=f)
else:
runcmd(['gzip', f'-{gzip_level}', '-c', filepath], stdout=f)
file_with_ext = file + ext
Expand Down

0 comments on commit 28a26d6

Please sign in to comment.