From owner-cvs-usrbin Sat Dec 13 03:08:04 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id DAA14073 for cvs-usrbin-outgoing; Sat, 13 Dec 1997 03:08:04 -0800 (PST) (envelope-from owner-cvs-usrbin) Received: from word.smith.net.au (ppp5.portal.net.au [202.12.71.105]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id DAA14055; Sat, 13 Dec 1997 03:07:54 -0800 (PST) (envelope-from mike@word.smith.net.au) Received: from word (localhost [127.0.0.1]) by word.smith.net.au (8.8.8/8.8.5) with ESMTP id VAA02541; Sat, 13 Dec 1997 21:32:36 +1030 (CST) Message-Id: <199712131102.VAA02541@word.smith.net.au> X-Mailer: exmh version 2.0zeta 7/24/97 To: Bruce Evans cc: cvs-all@FreeBSD.ORG, cvs-committers@FreeBSD.ORG, cvs-usrbin@FreeBSD.ORG, msmith@FreeBSD.ORG Subject: Re: cvs commit: src/usr.bin/minigzip - Imported sources In-reply-to: Your message of "Sat, 13 Dec 1997 21:46:47 +1100." <199712131046.VAA30601@godzilla.zeta.org.au> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Sat, 13 Dec 1997 21:32:35 +1030 From: Mike Smith Sender: owner-cvs-usrbin@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk > > Log Message: > > This framework builds the 'minigzip' sample program supplied with > > libz. It is a non-GPL-polluted minimal implementation of the 'gzip' > > command, yielding a 12k executable (vs ~100k for gzip). > > That's because it is linked shared. When both are linked static under > 2.2.5, gzip is 88K (for the installed file size) and minigzip is 72K. > When both are linked shared, gzip is 52K and minigzip is 12K. I > guess minigzip is only worth putting in crunched binaries if you've > already bloated them by using libz. Very good; give the man a bannana. Gzip linked (shared) under 3.0 is actually about 100k, as noted in the log message. Note also that if you are in a space-restricted environment but already have libz present (think 'ppp router floppy') you win again. I felt the minor build/space bloat (a few tens of k and a few seconds) was a reasonable tradeoff. Saving 80+k on a potential install floppy isn't a bad win either. Then, if you are worried about the GPL, it's a win from a different direction. But we've covered this already. mike