From owner-freebsd-current@FreeBSD.ORG Thu May 1 23:32:06 2003 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B26E137B401; Thu, 1 May 2003 23:32:06 -0700 (PDT) Received: from whale.sunbay.crimea.ua (whale.sunbay.crimea.ua [212.110.138.65]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2068B43F93; Thu, 1 May 2003 23:32:03 -0700 (PDT) (envelope-from ru@whale.sunbay.crimea.ua) Received: from whale.sunbay.crimea.ua (ru@localhost [127.0.0.1]) h426W062013544 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 2 May 2003 09:32:00 +0300 (EEST) (envelope-from ru@whale.sunbay.crimea.ua) Received: (from ru@localhost) by whale.sunbay.crimea.ua (8.12.9/8.12.8/Submit) id h426W0w3013539; Fri, 2 May 2003 09:32:00 +0300 (EEST) (envelope-from ru) Date: Fri, 2 May 2003 09:32:00 +0300 From: Ruslan Ermilov To: Tim Robbins Message-ID: <20030502063200.GC12809@sunbay.com> References: <20030502011307.GA82420@sunbay.com> <20030502153334.A70914@dilbert.robbins.dropbear.id.au> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="7qSK/uQB79J36Y4o" Content-Disposition: inline In-Reply-To: <20030502153334.A70914@dilbert.robbins.dropbear.id.au> User-Agent: Mutt/1.5.4i cc: current@FreeBSD.ORG Subject: Re: HEADS UP: bzip2(1) compression for manpages, Groff and Texinfo docs X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 02 May 2003 06:32:07 -0000 --7qSK/uQB79J36Y4o Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, May 02, 2003 at 03:33:34PM +1000, Tim Robbins wrote: > On Fri, May 02, 2003 at 04:13:07AM +0300, Ruslan Ermilov wrote: >=20 > > This is just an announcement that I'm going to add bzip2(1) > > support to man(1) and makewhatis(1) (catman(1) already has > > it), and then switch the default compression method from > > gzip(1) to bzip2(1), for manpages, Groff and Texinfo docs. > > (The latest 4.5 texinfo supports bzip2.) >=20 > I don't mean to sound rude, but what is the justification for this? >=20 Sorry to be sounding obvious, but what other use other than better compression one should expect from a compression tool? > An extremely rough test: >=20 > $ time bzip2 -c sh.1 | wc -c=20 > 16099 > 0.24s real 0.21s user 0.03s system > $ time gzip -c sh.1 | wc -c=20 > 18036 > 0.12s real 0.10s user 0.01s system >=20 > bzip2 takes ~2 times as long as gzip and the resulting file with bzip2 is= ~0.9 > times the size of the gzip file. >=20 > bzip2 does not seem to perform significantly better on small files: >=20 > $ time gzip -c who.1 | wc -c > 2168 > 0.03s real 0.00s user 0.00s system > $ time bzip2 -c who.1 | wc -c > 2208 > 0.04s real 0.03s user 0.00s system >=20 If you're bothered with times, I suggest that you put NOMANCOMPRESS, NODOCCOMPRESS, and NOINFOCOMPRESS into /etc/make.conf. That will positively affect the buildworld times too. FWIW, I'm only going to change the default, the possibility to use gzip(1) will still be there. Cheers, --=20 Ruslan Ermilov Sysadmin and DBA, ru@sunbay.com Sunbay Software AG, ru@FreeBSD.org FreeBSD committer, +380.652.512.251 Simferopol, Ukraine http://www.FreeBSD.org The Power To Serve http://www.oracle.com Enabling The Information Age --7qSK/uQB79J36Y4o Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (FreeBSD) iD8DBQE+shDfUkv4P6juNwoRAlbcAJ9hIeiY1MgdcW/3gur7IwQfUzZMXwCbBS6t XK/8g0Rsea1x36G75+PjlPE= =lee6 -----END PGP SIGNATURE----- --7qSK/uQB79J36Y4o--