www.delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2005/08/05/08:13:36

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Message-ID: <42F357E1.6070300@byu.net>
Date: Fri, 05 Aug 2005 06:13:21 -0600
From: Eric Blake <ebb9 AT byu DOT net>
User-Agent: Mozilla Thunderbird 1.0.2 (Windows/20050317)
MIME-Version: 1.0
To: James McLaughlin <zerotype AT yahoo DOT com>
CC: cygwin AT cygwin DOT com
Subject: Re: gz files in man folders
References: <20050805114138 DOT 74619 DOT qmail AT web52515 DOT mail DOT yahoo DOT com>
In-Reply-To: <20050805114138.74619.qmail@web52515.mail.yahoo.com>
X-IsSubscribed: yes

-----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 AT byu DOT 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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019