Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756491Ab0BNJXS (ORCPT ); Sun, 14 Feb 2010 04:23:18 -0500 Received: from poutre.nerim.net ([62.4.16.124]:51240 "EHLO poutre.nerim.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753886Ab0BNJXL (ORCPT ); Sun, 14 Feb 2010 04:23:11 -0500 Date: Sun, 14 Feb 2010 10:23:08 +0100 From: Jean Delvare To: Phillip Lougher Cc: lasse.collin@tukaani.org, linux-kernel , mirrors@kernel.org, users@kernel.org, "FTPAdmin Kernel.org" , Pavel Machek Subject: Re: [kernel.org users] XZ Migration discussion Message-ID: <20100214102308.1d1d6fff@hyperion.delvare> In-Reply-To: <4B773B31.1020802@lougher.demon.co.uk> References: <4B744E13.8040004@kernel.org> <20100211205129.GA26105@elf.ucw.cz> <20100213181008.479509f5@hyperion.delvare> <4B773B31.1020802@lougher.demon.co.uk> X-Mailer: Claws Mail 3.5.0 (GTK+ 2.14.4; i586-suse-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2728 Lines: 56 On Sat, 13 Feb 2010 23:52:17 +0000, Phillip Lougher wrote: > Jean Delvare wrote: > > > > > Compared to bz2, gz saves... 2% on the overall time. As a conclusion, I > > think we can plain discard the argument "I need .gz because my machine > > is slow" from now on. It simply doesn't hold. > > > > I agree, but, IMHO the main argument for keeping .gz is cross-platform > availability and wide language support, not hardware limitations. Doing > a quick google brings up .gz interfaces for every language you can think > of (C, Java, Perl, Python, TCL etc.), not to mention complete separate > implementations in Java and Pascal (not just wrappers on top of the zlib > library), and probably more. > > With xz you have just one C/C++ implementation with a single library with > an undocumented API for C/C++ programmers. This can probably be easily explained. gz is very fast decompressing so it is a very good choice for transparent decompression of files which must be accessible fast but aren't used frequently. Manual pages or printer drivers come to mind. bz2 and lzma, OTOH, are meant for longer term archiving. Their compression ratio benefit is only worth it for larger files that you don't access that frequently. I am not claiming that gzip is dead. It is very useful and it is there to stay for the years to come, no doubt about that. What I'm saying is that it isn't the best choice for large files to be downloaded from a remote server. > It may be a slight stretch of the imagination, but with with .gz you can > conceive programmers writing programs to download a .gz from kernel.org and > decompressing/searching it, in almost any language of choice. With the JAVA > implementation .gz is genuinely cross platform and you don't need glibc/ > C++ compilers, just a Java VM. Contrast with xz, where if the xz utility > isn't available, or doesn't do what you want, you're stuck with programming > in C/C++ with all the baggage that entails. Honestly, I don't think we care at all when it comes to the kernel.org files. Accessing individual files inside a compressed kernel tarball without first expanding it entirely would be horribly slow and unpractical, no matter which compression format was used. I can't think of any case where you won't unpack the tarball first, and for this task an external tool will do just fine. And, once again, there are several public instances of gitweb and LXR available if you only want to browse the code. -- Jean Delvare -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/