Is Python really slow?
Alexander
alecdem at mit.edu
Sat May 27 13:52:43 EDT 2000
Makhno wrote:
> >>> Does xrange create an array of numbers 1...1e8?
> >>
> >> Yes, it does
> >>
> >No, it doesn't.
>
> Well, if it did create an array Matlab-style, then that would account for
> why the C routine was faster.
That was just an example. actually I used
range(1,10000)
I also tryed while loop
and it was not empty loop,
in all of those cases C was ~100 times faster than Python
More information about the Python-list
mailing list