From owner-freebsd-hackers@FreeBSD.ORG Fri Oct 13 18:12:55 2006 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B94D116A47C for ; Fri, 13 Oct 2006 18:12:55 +0000 (UTC) (envelope-from joerg@britannica.bec.de) Received: from antivirus.uni-rostock.de (mailrelay1.uni-rostock.de [139.30.8.201]) by mx1.FreeBSD.org (Postfix) with ESMTP id 59AC343DB6 for ; Fri, 13 Oct 2006 18:12:39 +0000 (GMT) (envelope-from joerg@britannica.bec.de) Received: from antivirus.exch.rz.uni-rostock.de ([127.0.0.1]) by antivirus.uni-rostock.de with Microsoft SMTPSVC(6.0.3790.1830); Fri, 13 Oct 2006 20:12:38 +0200 Received: from antivirus.uni-rostock.de (unverified) by antivirus.exch.rz.uni-rostock.de (Content Technologies SMTPRS 4.3.20) with ESMTP id for ; Fri, 13 Oct 2006 20:12:38 +0200 Received: from mail pickup service by antivirus.uni-rostock.de with Microsoft SMTPSVC; Fri, 13 Oct 2006 20:12:37 +0200 X-SCL: 1 44.7% Received: from mail.uni-rostock.de ([139.30.8.11]) by antivirus.uni-rostock.de with Microsoft SMTPSVC (6.0.3790.1830); Fri, 13 Oct 2006 20:12:33 +0200 Received: from conversion-daemon.mail2.uni-rostock.de by mail2.uni-rostock.de (iPlanet Messaging Server 5.2 HotFix 2.09 (built Nov 18 2005)) id <0J7300E015TCL2@mail.uni-rostock.de> (original mail from joerg@britannica.bec.de) for freebsd-hackers@freebsd.org; Fri, 13 Oct 2006 20:12:32 +0200 (MEST) Received: from britannica.bec.de (storm.stura.uni-rostock.de [139.30.252.72]) by mail2.uni-rostock.de (iPlanet Messaging Server 5.2 HotFix 2.09 (built Nov 18 2005)) with ESMTP id <0J73002Z15WXIN@mail.uni-rostock.de> for freebsd-hackers@freebsd.org; Fri, 13 Oct 2006 19:58:09 +0200 (MEST) Received: by britannica.bec.de (Postfix, from userid 1000) id 99A2A56E4; Fri, 13 Oct 2006 19:57:20 +0200 (CEST) Date: Fri, 13 Oct 2006 19:57:20 +0200 From: Joerg Sonnenberger In-reply-to: <200610131345.k9DDjYkD030561@lurza.secnetix.de> To: freebsd-hackers@freebsd.org Mail-followup-to: freebsd-hackers@freebsd.org Message-id: <20061013175720.GA5150@britannica.bec.de> MIME-version: 1.0 Content-type: text/plain; charset="us-ascii" Content-transfer-encoding: 7BIT Content-disposition: inline User-Agent: Mutt/1.5.13 (2006-08-11) References: <452E8FDF.4050003@FreeBSD.org> <200610131345.k9DDjYkD030561@lurza.secnetix.de> X-OriginalArrivalTime: 13 Oct 2006 18:12:33.0689 (UTC) FILETIME=[27AF2090:01C6EEF3] Subject: Re: "tar -c|gzip" faster than "tar -cz"?!? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 13 Oct 2006 18:12:55 -0000 On Fri, Oct 13, 2006 at 03:45:34PM +0200, Oliver Fromme wrote: > Meanwhile I had a quick look at the code: gzip uses some > optimized assembler code (for x86 and 680x0), while libz > doesn't have such a thing. Maybe that's the reason why > gzip is noticeably faster. I'm not sure what happened in the mean time, but when I did the tests in 2004, libz was faster. *sigh* The assembly doesn't seem to help much, at least not the longest_match version. Might be a good idea to look at crc32, but I don't have the time now :-( Joerg