From owner-freebsd-hackers@FreeBSD.ORG Wed Nov 26 10:08:41 2008 Return-Path: Delivered-To: freebsd-hackers@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C63BD1065677 for ; Wed, 26 Nov 2008 10:08:41 +0000 (UTC) (envelope-from bf2006a@yahoo.com) Received: from web39108.mail.mud.yahoo.com (web39108.mail.mud.yahoo.com [209.191.87.227]) by mx1.freebsd.org (Postfix) with SMTP id 837C08FC1A for ; Wed, 26 Nov 2008 10:08:41 +0000 (UTC) (envelope-from bf2006a@yahoo.com) Received: (qmail 69020 invoked by uid 60001); 26 Nov 2008 10:08:41 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:X-Mailer:Date:From:Reply-To:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type:Message-ID; b=jSZDUH1BXgah4vx+0cuBWMmI3aPTGDPAWF6x9rn5XLOHD3Tbs/NoHK+9Vs4MmkOrolzDdVvxwQwmizrkbjF1MTbvl+/P3D2qt+fvRP/K0bHEAcfY83lei/1wF/cCozoKhrieQdlF1QJ3/UAUrSlJtJMHywK6s1OxjzF7CMRpjzM=; X-YMail-OSG: _oNg1NUVM1l9jFGtM1Uj.EdvYnXKANHqPMEQlfwVVPH6vzzBjE_cBGp0AGhvDjVDqCNwbCIhG8GBeWd1F2P8ITMROPfltUu7K54NtTtyDYgtx66Nc9DKdliNJABuC_x2vTdI5Fw8JLbmqa0ZY9OAHHD1W6.rU4yrj6EfpwohUNzFmPwgjtPT5WsP_3BM Received: from [192.251.226.205] by web39108.mail.mud.yahoo.com via HTTP; Wed, 26 Nov 2008 02:08:40 PST X-Mailer: YahooMailWebService/0.7.260.1 Date: Wed, 26 Nov 2008 02:08:40 -0800 (PST) From: bf To: Stanislav Sedov In-Reply-To: <20081126110435.fe722ef8.stas@FreeBSD.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Message-ID: <29384.68729.qm@web39108.mail.mud.yahoo.com> X-Mailman-Approved-At: Wed, 26 Nov 2008 12:26:51 +0000 Cc: freebsd-hackers@FreeBSD.org, Ivan Voras Subject: Re: lzma compression/decompression in bsdtar/libarchive? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: bf2006a@yahoo.com List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 26 Nov 2008 10:08:41 -0000 --- On Wed, 11/26/08, Stanislav Sedov wrote: > From: Stanislav Sedov > Subject: Re: lzma compression/decompression in bsdtar/libarchive? > To: bf2006a@yahoo.com > Cc: "Ivan Voras" , freebsd-hackers@FreeBSD.org > Date: Wednesday, November 26, 2008, 3:04 AM > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > On Tue, 25 Nov 2008 12:51:33 -0800 (PST) > bf mentioned: > > > Not so long ago (the end of April, this year) someone > tried to switch > > ImageMagick to using lzma-compressed tarballs, and > caught a lot of flak > > from others who were unfamiliar with this form of > compression. If Tim > > could integrate it with libarchive, I'm sure that > it would be more > > favorably received. > > > > Indeed, the main argument against was that you need an > extra dependency > to unpack these, and there's no point in requiring that > as bz2 versions > were available. > While I can understand a reluctance to add another port to the dependency tree, on my (slow) machine archivers/lzma occupies 169kb of disk space when installed, and took only a minute or two to build from source, while every time a ImageMagick distfile is downloaded, about 3Mb of network traffic and disk space is saved by using the lzma-compressed distfile rather than the bzip2-compressed distfile. And there are some further time savings in downloading and unpacking. So I think that there is a "point" to switching, even if you didn't agree that it was worthwhile for just one port. When you consider that comparable benefits could have been gained for no further cost for scores of additional ports by switching to lzma, the decision to revert to bzip2 doesn't seem so good. I might add that I have seen ports in the tree that use gzipped tarballs when much smaller bzipped ones are available, and ports that USE_ZIP when there are smaller gzipped tarballs available, so there's more room for improvement. Regards, b.