Is python really slow?

Armin Steinhoff a-steinhoff at web.de
Wed May 22 03:33:17 EDT 2002


Alexander wrote:

>Actually I've created array and did something like this :

>for k in xrange(1,10000):
>  for m in range(1,10000):
>    x[m] =  .... #some calculation of the value of an array's element x[m]

>and this work's realy slow compared to C. I don't mind it working 3 times
>slower, but ..

>Perhaps it is possible, to do something like  implementing loops in C inside
>Python ??
>(though it seems to me it will not help)


Trey Pyrex .. it's a cool tool :)

http://www.cosc.canterbury.ac.nz/~greg/python/Pyrex/

Armin



More information about the Python-list mailing list