From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([69.77.167.62] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1KqCb2-00045o-Md for garchives@archives.gentoo.org; Wed, 15 Oct 2008 20:03:53 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 5468BE0495; Wed, 15 Oct 2008 20:03:49 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 0E207E0495 for ; Wed, 15 Oct 2008 20:03:49 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp.gentoo.org (Postfix) with ESMTP id 000CE64604 for ; Wed, 15 Oct 2008 20:03:46 +0000 (UTC) X-Virus-Scanned: amavisd-new at gentoo.org X-Spam-Score: -0.644 X-Spam-Level: X-Spam-Status: No, score=-0.644 required=5.5 tests=[AWL=0.888, BAYES_00=-2.599, RCVD_IN_DNSWL_LOW=-1, RCVD_NUMERIC_HELO=2.067] Received: from smtp.gentoo.org ([127.0.0.1]) by localhost (smtp.gentoo.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 6B1xrB+m9rFr for ; Wed, 15 Oct 2008 20:03:40 +0000 (UTC) Received: from ciao.gmane.org (main.gmane.org [80.91.229.2]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTP id E4CDA646A8 for ; Wed, 15 Oct 2008 20:03:37 +0000 (UTC) Received: from list by ciao.gmane.org with local (Exim 4.43) id 1KqCaj-0000Mk-SZ for gentoo-dev@gentoo.org; Wed, 15 Oct 2008 20:03:34 +0000 Received: from 82.153.199.203 ([82.153.199.203]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 15 Oct 2008 20:03:33 +0000 Received: from slong by 82.153.199.203 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 15 Oct 2008 20:03:33 +0000 X-Injected-Via-Gmane: http://gmane.org/ To: gentoo-dev@lists.gentoo.org From: Steve Long Subject: [gentoo-dev] Re: Re: Re: [gentoo-commits] gentoo-x86 commit in dev-lang/python: ChangeLog python-2.6.ebuild python-2.5.2-r6.ebuild Date: Wed, 15 Oct 2008 20:51:32 +0100 Message-ID: References: <48F3058E.9010200@gentoo.org> <200810151819.23156.levertond@googlemail.com> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-dev@lists.gentoo.org Reply-to: gentoo-dev@lists.gentoo.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7Bit X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 82.153.199.203 User-Agent: KNode/0.10.9 Sender: news X-Archives-Salt: 402e4451-96fe-496f-aaa4-9aa332c25734 X-Archives-Hash: 06fd59532779a63c3422ed9691c7278d David Leverton wrote: > On Wednesday 15 October 2008 10:33:22 Steve Long wrote: >> Here you go (this is on an old machine, so you'll get much quicker times >> if you try this at home): >> [igli@box ~]$ echo "$(> #!/bin/bash >> P='some-crap/god-i-hate-asshats' > > I do hope that that isn't directed at anyone in particular. > No, but thanks for drawing attention to it. >> for ((i=0;i<100000;i++)); do echo /usr/share/doc/${P}/examples > >> /dev/null; > >> real 11.25 > >> real 9.24 > > So that's what, on the order of 20 microseconds faster for each iteration? > Or ~18%. (You shouldn't use the first iteration in general, btw.) > This is a purely stylistic issue, same as the braces with variable > expansions. See my other posts. > You're free to write your own code however you like, but > harassing other people to do things your favourite way with no practical > benefit is just going to annoy everyone. I'm sorry you feel harrassed by my talking about the basics of shell-scripting, it wasn't intended like that. Though, given your tone, I don't think you are feeling harrassed; perhaps you're just feeling defensive about your trap boo-boo? Whatever, leaving aside the amateur dramatics, it was more to show how to do the benchmarking than anything else; I'd have simply said "yes" but that reminded me too much of behaviour I have criticised in the past. For the record, I'm sorry if my choice of package name caused any offence to anyone else. It was a quick thing I knocked off, cp'ed and pasted; at most I thought it would be taken as a joke when I wrote it, then I didn't check it through in the correct frame of mind (I have flu and was tired, so just wanted to send the thing and didn't check the script itself) when I sent it, and for that I apologise to everyone reading.