binary-dist: when using xz, use extreme compression.
authorAustin Seipp <austin@well-typed.com>
Fri, 28 Feb 2014 23:13:21 +0000 (17:13 -0600)
committerAustin Seipp <austin@well-typed.com>
Fri, 28 Feb 2014 23:13:24 +0000 (17:13 -0600)
When building a binary distribution with TAR_COMP=xz, using the -9e flag
(extremely high compression) results in substantial savings: for the
Mavericks builds, bzip2 scores in at about 120mb, while xz at level 9
scores about 60mb - a huge reduction!

This of course takes significantly longer - but it does not affect
decompression speed for end users, so it's certainly worth it.

Signed-off-by: Austin Seipp <austin@well-typed.com>
mk/config.mk.in

index 6fec589..b805a14 100644 (file)
@@ -697,7 +697,7 @@ PATCH_CMD      = @PatchCmd@
 TAR_CMD        = @TarCmd@
 BZIP2_CMD      = bzip2
 GZIP_CMD       = gzip
-XZ_CMD         = xz
+XZ_CMD         = xz -9e
 
 # bzip2 is default compression
 TAR_COMP      = bzip2