|
Hi everyone,
I'd like to ask you a question about Ironpython's
speed and performance:
I imagine that so far, you've been
concentrated in completeness and compatibility more than performance, and I
guess you'll address this issue after verion 1.0.
However, and although you claimed that Ironpython
is faster than cpython, I see cases where it is slower by a large
margin.
For example, the script below is up to 21x slower
than cpython.
My question is: what are your expectations
regarding ironpython's speed in the future?
According to your experience so far, are you
confident that it will match or surpass cpython's?
Where do you think it will be better and where it
will be worse?
script
-----------------------------
import time
def test():
start= time.clock() z=[] x=range(1000000)
for i in
range(1000000):
if i % 2: x[i] = 10 else: x[i] = "a string" for i in x: if type(i)==str: z.append(i.upper()) else: z.append(i*3) end= time.clock() - start print end test()
-----------------------------------
end script
Regards,
Luis
|
_______________________________________________ users mailing list [email protected] http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
