Bug 47822

Summary: please provide xz compressed tarball
Product: cairo Reporter: Chí-Thanh Christopher Nguyễn <chithanh>
Component: generalAssignee: Carl Worth <cworth>
Status: RESOLVED FIXED QA Contact: cairo-bugs mailing list <cairo-bugs>
Severity: enhancement    
Priority: medium    
Version: 1.12.0   
Hardware: Other   
OS: All   
Whiteboard:
i915 platform: i915 features:

Description Chí-Thanh Christopher Nguyễn 2012-03-24 14:42:51 UTC
Between cairo-1.10.2 and 1.12.0 the gzip compressed tarball grew from 23 MB to 60 MB (mostly caused by additions to the test/ directory).

Please provide an xz compressed tarball too. This would reduce download size for users who build cairo from source by compensating for some of the size increase.

Comparison between different compressors:
Uncompressed    89006080
gzip -9         63084508
bzip2 -9        61112978
xz -6 (default) 42046320
xz -7           36911776
xz -8           30381868
xz -9           29569496
squashfs-gzip   31555584 (due to many duplicate files)
Comment 1 James Cloos 2012-03-25 11:50:21 UTC
Don’t forget to use the -e option, too, if xz is added.

I gave three a try:

:; ll cairo-1.12.0.tar.xz-?ev
35980  36840128  cairo-1.12.0.tar.xz-7ev
29604  30312300  cairo-1.12.0.tar.xz-8ev
28808  29498136  cairo-1.12.0.tar.xz-9ev

It looks like -8e is the best choice; -9 uses twice the ram to
decompress for only a tiny benefit.  -7 needs half the ram that
-8 does, but the jump is more significant.
Comment 2 Chris Wilson 2012-04-16 04:47:59 UTC
Hopefully this is sufficient:

commit aa90a8f84f7dff67d57a8c0863331bf04e3b546e
Author: Javier Jardón <jjardon@gnome.org>
Date:   Tue Sep 13 16:15:49 2011 +0100

    configure.ac: generate xz tarballs by default

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.