Gentoo Archives: gentoo-dev

From: Steve Long <slong@××××××××××××××××××.uk>
To: gentoo-dev@l.g.o
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:03:53
Message-Id: gd5iad$hmo$1@ger.gmane.org
In Reply to: Re: [gentoo-dev] Re: Re: [gentoo-commits] gentoo-x86 commit in dev-lang/python: ChangeLog python-2.6.ebuild python-2.5.2-r6.ebuild by David Leverton
1 David Leverton wrote:
2
3 > On Wednesday 15 October 2008 10:33:22 Steve Long wrote:
4 >> Here you go (this is on an old machine, so you'll get much quicker times
5 >> if you try this at home):
6 >> [igli@box ~]$ echo "$(<run)"
7 >> #!/bin/bash
8 >> P='some-crap/god-i-hate-asshats'
9 >
10 > I do hope that that isn't directed at anyone in particular.
11 >
12 No, but thanks for drawing attention to it.
13
14 >> for ((i=0;i<100000;i++)); do echo /usr/share/doc/${P}/examples >
15 >> /dev/null;
16 >
17 >> real 11.25
18 >
19 >> real 9.24
20 >
21 > So that's what, on the order of 20 microseconds faster for each iteration?
22 >
23 Or ~18%. (You shouldn't use the first iteration in general, btw.)
24
25 > This is a purely stylistic issue, same as the braces with variable
26 > expansions.
27 See my other posts.
28
29 > You're free to write your own code however you like, but
30 > harassing other people to do things your favourite way with no practical
31 > benefit is just going to annoy everyone.
32
33 I'm sorry you feel harrassed by my talking about the basics of
34 shell-scripting, it wasn't intended like that. Though, given your tone, I
35 don't think you are feeling harrassed; perhaps you're just feeling
36 defensive about your trap boo-boo? Whatever, leaving aside the amateur
37 dramatics, it was more to show how to do the benchmarking than anything
38 else; I'd have simply said "yes" but that reminded me too much of behaviour
39 I have criticised in the past.
40
41 For the record, I'm sorry if my choice of package name caused any offence to
42 anyone else. It was a quick thing I knocked off, cp'ed and pasted; at most
43 I thought it would be taken as a joke when I wrote it, then I didn't check
44 it through in the correct frame of mind (I have flu and was tired, so just
45 wanted to send the thing and didn't check the script itself) when I sent
46 it, and for that I apologise to everyone reading.

Replies