Re: Python popenX() slowness on AIX?

2006-12-01 Thread allenjo5
Stefaan A Eeckels wrote: > On 24 Nov 2006 09:03:41 -0800 > [EMAIL PROTECTED] wrote: > > > Stefaan A Eeckels wrote: > > > On 21 Nov 2006 13:02:14 -0800 > > > [EMAIL PROTECTED] wrote: > > > > > > > The fact that it does this in Python code instead of C is the main > > > > cause of the slowness. So,

Re: Python popenX() slowness on AIX?

2006-11-24 Thread allenjo5
Stefaan A Eeckels wrote: > On 21 Nov 2006 13:02:14 -0800 > [EMAIL PROTECTED] wrote: > > > The fact that it does this in Python code instead of C is the main > > cause of the slowness. So, unless Python is changed to do this in C, > > it's always going to be slow on AIX :-( > > I guess that the rea

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 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

Question about unreasonable slowness

2006-11-16 Thread allenjo5
[ 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