From owner-freebsd-current@FreeBSD.ORG  Tue Dec  7 07:55:40 2010
Return-Path: <owner-freebsd-current@FreeBSD.ORG>
Delivered-To: freebsd-current@freebsd.org
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 3299A106566B;
	Tue,  7 Dec 2010 07:55:40 +0000 (UTC)
	(envelope-from alexkozlov0@gmail.com)
Received: from mail-bw0-f49.google.com (mail-bw0-f49.google.com
	[209.85.214.49])
	by mx1.freebsd.org (Postfix) with ESMTP id 7B2E88FC15;
	Tue,  7 Dec 2010 07:55:39 +0000 (UTC)
Received: by bwz5 with SMTP id 5so11954885bwz.8
	for <multiple recipients>; Mon, 06 Dec 2010 23:55:38 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma;
	h=domainkey-signature:received:received:sender:date:from:to:subject
	:message-id:mime-version:content-type:content-disposition;
	bh=kznlTadG6pcqx0Wm5YnGdccGWDF60fmUj7a8KPjDsN4=;
	b=M8PATM6VrPVOx4W1VUM4VDHSAD3kf5ZBI2wO3IibRj1oVBChu6r6bjbSbEXNL97oVU
	p+ldNd0Iir02yS5vJQO/+zIfOLoLTYji0ZQpeIXGvmmALeBJLTDo5E21//g0VmngOa9Q
	iJwmI97DPnHAc5YKTdnHMkVK1Cwk/QIPzWeZI=
DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma;
	h=sender:date:from:to:subject:message-id:mime-version:content-type
	:content-disposition;
	b=LTuLV5wD676YayMPN1/ZbAa/sNBt0R8FeKaf13ujvHfGn1AHqxhknbpJnZJnWAFDYj
	TSosf6aaxaaKVLKA451Xu1RN8i1pa3VkZgBH3rLWAlR82E7DhkZx4wgkFUc8jSmhdP40
	MIIb4fI5ziwZx7Qx91+54Sn6P1f4GVuq58t90=
Received: by 10.204.75.77 with SMTP id x13mr90890bkj.162.1291707168766;
	Mon, 06 Dec 2010 23:32:48 -0800 (PST)
Received: from ravenloft.kiev.ua (ravenloft.kiev.ua [94.244.131.95])
	by mx.google.com with ESMTPS id f12sm2739034bkf.16.2010.12.06.23.32.45
	(version=TLSv1/SSLv3 cipher=RC4-MD5);
	Mon, 06 Dec 2010 23:32:47 -0800 (PST)
Sender: Alex Kozlov <alexkozlov0@gmail.com>
Date: Tue, 7 Dec 2010 09:30:13 +0200
From: Alex Kozlov <spam@rm-rf.kiev.ua>
To: Tim Kientzle <tim@kientzle.com>, Chuck Swiger <cswiger@mac.com>,
	Norikatsu Shigemura <nork@freebsd.org>, freebsd-current@freebsd.org,
	spam@rm-rf.kiev.ua
Message-ID: <20101207073013.GA59001@ravenloft.kiev.ua>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Cc: 
Subject: Re: trying to use xz on manuals.
X-BeenThere: freebsd-current@freebsd.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: Discussions about the use of FreeBSD-current
	<freebsd-current.freebsd.org>
List-Unsubscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-current>, 
	<mailto:freebsd-current-request@freebsd.org?subject=unsubscribe>
List-Archive: <http://lists.freebsd.org/pipermail/freebsd-current>
List-Post: <mailto:freebsd-current@freebsd.org>
List-Help: <mailto:freebsd-current-request@freebsd.org?subject=help>
List-Subscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-current>,
	<mailto:freebsd-current-request@freebsd.org?subject=subscribe>
X-List-Received-Date: Tue, 07 Dec 2010 07:55:40 -0000

On Mon, Dec 06, 2010 at 10:50:44PM -0800, Tim Kientzle wrote:
> On Dec 6, 2010, at 11:17 AM, Chuck Swiger wrote:
>> On Dec 6, 2010, at 9:13 AM, Alex Kozlov wrote:
>>> On Tue, Dec 07, 2010 at 02:03:50AM +0900, Norikatsu Shigemura wrote:
>>>> 	.xz smaller than .gz, but effective is about 96.2%:-(.
>>> Some time ago I do similar tests. Changing compression for base man's
>>>  to bz2 or xz doesn't make much sense.
>> Oh, agreed.  The issue with small files is that they will always take up
>> at least one sector [*]; different compression routines don't gain any
>>  benefit if they don't change the number of sectors needed to store the file.
>> More than half of the manpages end up as 1K .gz catman files as it is;
>> ~90% are 2K or smaller.
> It might make sense if XZ decompression were significantly
> faster than GZip decompression.  (Especially since man pages
> are decompressed much more often than they are compressed.)
It's not.

Bigest man from the base, FreeBSD 9.0-CURRENT Sat Oct 23 amd64,
CPU: Pentium(R) Dual-Core CPU T4400 @ 2.20GHz (2194.55-MHz K8-class CPU),
average of 3 tries:

$ls -l CC.1*
-rw-r--r--  1 kozlov  kozlov  584775 Dec  7 09:14 CC.1
-rw-r--r--  1 kozlov  kozlov  161663 Dec  7 09:14 CC.1.gz
-rw-r--r--  1 kozlov  kozlov  131580 Dec  7 09:13 CC.1.xz
$cat CC.1.?z >/dev/null
$time xzcat CC.1.xz >/dev/null

real    0m0.032s
user    0m0.028s
sys     0m0.000s
$time gzcat CC.1.gz >/dev/null

real    0m0.012s
user    0m0.008s
sys     0m0.000s


--
Adios