A question about osyco

Marc 'BlackJack' Rintsch bj_666 at gmx.net
Mon Jan 28 12:33:00 EST 2008


On Mon, 28 Jan 2008 05:31:41 -0800, iu2 wrote:

> I wrote two version of a fib functions, a recursive one and an
> iterative one.
> Psyco improved a lot the recursive function time, but didn't affect at
> all the iterative function.
> 
> Why?

Try calling the iterative one twice and measure the time of the second
call.  IIRC psyco needs at least one call to analyze the function, so the
first call is not speed up.

Ciao,
	Marc 'BlackJack' Rintsch



More information about the Python-list mailing list