good way to do side effects on lists?

Peter Hansen peter at engcorp.com
Fri Sep 24 02:50:14 CEST 2004


Eli Stevens (WG.c) wrote:
> Judging from this post:
> 
> http://groups.google.com/groups?hl=en&lr=lang_en&ie=UTF-8&selm=2259b0e2.0308240638.38350cba%40posting.google.com 
> 
> It seems like Psyco can detect simple "hey, let's see how fast this can 
> go with Psyco" tests, and can give skewed results.  I wouldn't expect a 
> 50x improvement in the general case (though if you have to do simplistic 
> things over and over, Psyco is the way to go ;).
> 
> I'm not trying to bash Psyco - two lines netting a 2x speed boost is 
> great, but it's good to avoid setting expectations too high.  :)  

That's a good point.  I was actually disappointed with Psyco
when I tried it because hyped reports based, I suspect, on
trivial cases had given me high expectations.  I believe I
achieved about a 12% speedup...

-Peter



More information about the Python-list mailing list