This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: gz files in man folders


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

According to James McLaughlin on 8/5/2005 5:41 AM:
> While trying to find the file containing the man
> information for g++ (which I succeeded in doing), I
> noticed that in various subfolders of
> c:\cygwin\share\man (in particular man1 and man3) a
> lot of the .1 and .3 (and.something else for the other
> subfolders) files were gzipped. This surprised me as
> they were pretty small files.

For files under 1k, zipping doesn't save any disk space (disk space is
used a block at a time, whether you use the entire block or not), and
wastes CPU cycles as it spawns the extra processes to unzip it.  But for
some man pages, the zipping is an improvement in filesize, so the default
maintainer's script for packaging in cygwin purposefully gzips all man
pages.  Man also purposefully zips (bzip2, not gzip) all cat pages, if you
have /var/cache/man/cat?/ directories.  I do note that in general, bzip2
gets better compression ratios on ASCII text, so maybe we should switch
the cygwin default compression engine for man pages?

> 
> Is there any reason why it wouldn't be a good idea to
> extract some of these (for convenience next time I'm
> looking for things related to man or just "tinkering
> under the bonnet")?

I'm personally happy with either approach, compressed or plain-text,
because I have plenty of hard drive space, and in practice I don't notice
the delay of the extra gunzip process in the loop.

- --
Life is short - so eat dessert first!

Eric Blake             ebb9@byu.net
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFC81fh84KuGfSFAYARArzZAKCEC3jK/H2DT2x2aVTHpxGXZfxA1wCfa9b0
UHsVaLBPLOFnyyBME2KbTRE=
=WySI
-----END PGP SIGNATURE-----

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]