Gentoo Archives: gentoo-dev

From: Tom Wijsman <TomWij@g.o>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] RFC: using .xz for doc/man/info compression
Date: Tue, 13 May 2014 16:34:22
Message-Id: 20140513183355.67a41993@gentoo.org
In Reply to: Re: [gentoo-dev] RFC: using .xz for doc/man/info compression by Andrew Savchenko
1 On Tue, 13 May 2014 06:08:52 +0400
2 Andrew Savchenko <bircoph@×××××.com> wrote:
3
4 > 1. How tools like man or info are supposed to work with such
5 > bundle? They are not expecting to have multiple man/info files into
6 > single xz bundle.
7
8 Hmm, true; they would need to be adapted, which involves talking to
9 upstream. Benchmarking and working on this would be a ML thread on its
10 own; it would be nice to check it out, if someone is interested in it.
11
12 > 2. This will put a stress on decompression procedure: in order to
13 > extract one file whole xz will have to be docompressed.
14
15 This would only work for compression algorithms that would allow you to
16 seek to a specific file to extract; I don't know about xz, but from a
17 quick look at the man page it indeed seems that that isn't possible.
18
19 > > Some algorithms tend to work better for smaller files, whereas
20 > > others work better for larger files; might this be the case for
21 > > bzip2 vs. xz?
22 >
23 > It doesn't really matter because small files will still require one
24 > filesystem block for majority of users. For people with reiserfs or
25 > squashfs this may matter of course.
26
27 Thank you for sharing this insight.
28
29 --
30 With kind regards,
31
32 Tom Wijsman (TomWij)
33 Gentoo Developer
34
35 E-mail address : TomWij@g.o
36 GPG Public Key : 6D34E57D
37 GPG Fingerprint : C165 AF18 AB4C 400B C3D2 ABF0 95B2 1FCD 6D34 E57D

Attachments

File name MIME type
signature.asc application/pgp-signature