]> git.ipfire.org Git - thirdparty/mkosi.git/commitdiff
Use default zstd compression level
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Wed, 19 Apr 2023 12:40:04 +0000 (14:40 +0200)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Wed, 19 Apr 2023 12:40:04 +0000 (14:40 +0200)
The current compression level takes a really long time to complete
when the output is large. Let's use the default compression level
instead so compression is a bit faster while still giving good results.

mkosi/__init__.py

index 6340438d32fc5ee269ba7bcab60e6f3831fba4c4..d7425347cf69eac284169aebe60c75c57a3245c9 100644 (file)
@@ -605,7 +605,7 @@ def compressor_command(option: Union[str, bool], src: Path) -> list[PathString]:
     if option == "xz":
         return [xz_binary(), "--check=crc32", "--lzma2=dict=1MiB", "-T0", src]
     elif option == "zstd":
-        return ["zstd", "-15", "-q", "-T0", "--rm", src]
+        return ["zstd", "-q", "-T0", "--rm", src]
     else:
         die(f"Unknown compression {option}")