Ł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,
[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
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
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
[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
[ 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