From owner-freebsd-arch Tue Jul 9 1:59:32 2002 Delivered-To: freebsd-arch@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id AC0F837B400 for ; Tue, 9 Jul 2002 01:59:29 -0700 (PDT) Received: from mx02.egartech.com (aloha.egartech.com [62.118.81.133]) by mx1.FreeBSD.org (Postfix) with SMTP id 69F6043E09 for ; Tue, 9 Jul 2002 01:59:28 -0700 (PDT) (envelope-from temik@egartech.com) Received: (qmail 2179 invoked by uid 85); 9 Jul 2002 08:59:23 -0000 Received: from temik@egartech.com by mx02.egartech.com with qmail-scanner-1.03 (. Clean. Processed in 0.377058 secs); 09 Jul 2002 08:59:23 -0000 Received: from unknown (HELO turtle.egar.egartech.com) (192.168.8.4) by 0 with SMTP; 9 Jul 2002 08:59:22 -0000 Subject: RE: Package system flaws? MIME-Version: 1.0 Content-Type: text/plain; charset="koi8-r" Content-Transfer-Encoding: quoted-printable Date: Tue, 9 Jul 2002 12:59:25 +0400 content-class: urn:content-classes:message X-MimeOLE: Produced By Microsoft Exchange V6.0.5762.3 Message-ID: <5235EF9BAE6B7F4CB3735789EEF73B29074172@turtle.egar.egartech.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Package system flaws? Thread-Index: AcImxVGsqyhQhNA3Tm2+znWNY6gkbQAXbWiA From: "Artem Tepponen" To: "Terry Lambert" , "Garrett Wollman" Cc: "Mark Valentine" , Sender: owner-freebsd-arch@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG > From: Terry Lambert [mailto:tlambert2@mindspring.com] > Sent: Tuesday, July 09, 2002 1:19 AM > Specifically, another of the main problems, besides no "metadata > first" priority, of the tgz format is that the index should be > uncompressed while the contents are compressed. Historically, the > whole archive, metadata and all, was compressed in order to support > seperate uncompress and tar. But it makes just as much sense to > support seperate tar and uncompress -- i.e. compress the individual > files, rather than compressing all files plus the metadata. Most > compression will work better on individual files rather than random > file contents because of dictionary locality, anyway. No, Terry. Dictionary locality works in a different way. gzipped tar will almost always win vs. tarred gzipped files. 10-15% from memory. Just a quick check: -rw-r--r-- 1 temik develops 29020160 Jul 9 12:36 gcc-3.0.1.gz.tar -rw-r--r-- 1 temik develops 13821669 Jul 9 12:41 = gcc-3.0.1.tar.bz2 -rw-r--r-- 1 temik develops 18054324 Sep 24 2001 gcc-3.0.1.tar.gz -rw-r--r-- 1 temik develops 22746511 Jul 9 12:52 gcc-3.0.1.zip Oops. I was wrong. >35% is a big difference. And bzip adds another 24%. But for binaries difference between gzip vs. bzip2 will be smaller. This is quite simple check but the picture will remain the same for pretty any kind of data and hope that's enough to choose single tar.somez + header. Will header be combined or in a different file is another question. Artem Tepponen To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message