[Tutor] Loop comparison
alan.gauld at btinternet.com
Fri Apr 16 11:05:54 CEST 2010
> The precalculation optimisations are
> taking place. If you pass it an argument to use for the upper limit of the
> sequence the calculation time shoots up.
I'm still confused about when the addition takes place.
Surely the compiler has to do the addition, so it should be slower?
I assume you have to run the posted code through cython
prior to running it in Python?
You can probably tell that I've never used Cython! :-)
More information about the Tutor