Re: Question about unreasonable slowness

2006-11-17 Thread allenjo5
Łukasz Langa wrote: > [EMAIL PROTECTED]: > > Ok, I built Python 2.5 (same AIX 5.1 machine). With the "for line in > > shellOut" loop in, it now takes "only" 7 secs instead of the 11 secs in > > python 2.4.3. So, that's better, but still unreasonably slow. And to > > answer another's question,

Re: Question about unreasonable slowness

2006-11-17 Thread Łukasz Langa
[EMAIL PROTECTED]: > Ok, I built Python 2.5 (same AIX 5.1 machine). With the "for line in > shellOut" loop in, it now takes "only" 7 secs instead of the 11 secs in > python 2.4.3. So, that's better, but still unreasonably slow. And to > answer another's question, I'm using the ksh builtin 'time

Re: Question about unreasonable slowness

2006-11-17 Thread allenjo5
Leif K-Brooks wrote: > [EMAIL PROTECTED] wrote: > > i = 0 > > while (i < 20): > > i = i + 1 > > for i in xrange(20): > > > (shellIn, shellOut) = os.popen4("/bin/sh -c ':'") # for testing, the > > spawned shell does nothing > > print 'next' > > # for line in shellOut: > > # print line

Re: Question about unreasonable slowness

2006-11-16 Thread Steven D'Aprano
On Thu, 16 Nov 2006 12:45:18 -0800, allenjo5 wrote: > [ Warning: I'm new to Python. Don't know it at all really yet, but had > to examine some 3rd party code because of performance problems with it. > ] > > Here's a code snippet: > > i = 0 > while (i < 20): > i = i + 1 You probably want to

Re: Question about unreasonable slowness

2006-11-16 Thread Leif K-Brooks
[EMAIL PROTECTED] wrote: > i = 0 > while (i < 20): > i = i + 1 for i in xrange(20): > (shellIn, shellOut) = os.popen4("/bin/sh -c ':'") # for testing, the > spawned shell does nothing > print 'next' > # for line in shellOut: > # print line > > On my system (AIX 5.1 if it matters, w

RE: Question about unreasonable slowness

2006-11-16 Thread Éric Daigneault
[ Warning: I'm new to Python. Don't know it at all really yet, but had to examine some 3rd party code because of performance problems with it. ] Here's a code snippet: i = 0 while (i < 20): i = i + 1 (shellIn, shellOut) = os.popen4("/bin/sh -c ':'") # for testing, the spawned shell does not