[Tutor] optimization: faster than for
Kent Johnson
kent37 at tds.net
Sun Jul 1 06:15:47 CEST 2007
elis aeris wrote:
> I found this on the net, and it's a different arrangement to using for
>
> the author claims it will result in faster performance, but i can't find
> documents on it, because I can't figure out which parts are parameters
> and which parts on special words, for python.
Where did you get this? Which version is claimed to be faster? The code
you attached runs directly, just paste it into the interpreter. On my
computer the second version takes about half the time of the first.
What is your question?
Kent
More information about the Tutor
mailing list