1 |
On Sunday, September 19, 2010 19:50:57 Zac Medico wrote: |
2 |
> On 09/19/2010 04:43 PM, Mike Frysinger wrote: |
3 |
> > many man pages exist merely as a redirect to another man page: |
4 |
> > $ xzcat /usr/share/man/man1/zcat.1.xz |
5 |
> > .so man1/gzip.1 |
6 |
> > |
7 |
> > compressing these tiny (always?) results in a larger file. that means we |
8 |
> > arent saving space, and we're adding overhead at runtime. |
9 |
> > |
10 |
> > two options which we can do transparently: |
11 |
> > - rewrite the .so man pages into symlinks |
12 |
> > - omit them from compression |
13 |
> > |
14 |
> > the latter is pretty easy (see below). any preferences on which route to |
15 |
> > take though as the former shouldnt be too hard either ... |
16 |
> |
17 |
> It feels like an insignificant optimization to me, but I don't feel |
18 |
> strongly either way. |
19 |
|
20 |
~19% of the man pages on my system appear to be forwarding files (glorified |
21 |
symlinks). in my case, that's almost 3000 files. considering things like |
22 |
`makewhatis` need to decompress & read all of these, i think the difference is |
23 |
worth addressing. |
24 |
-mike |