Language Shootout

Paul Winkler slinkp23 at yahoo.com
Mon Jul 9 16:53:41 EDT 2001


James Logajan wrote:
> 
> Paul Winkler wrote:
> > So basically what that benchmark tells me is: "Don't write recursively in Python
> > if performance is an issue".
> 
> Well yes, this is what benchmarks are useful for.

Right. I didn't know that before I looked at the site, so I'm glad I did.

I just wanted to prevent other people from making my initial mistake - assuming
that the tests only had to produce the same result. I was surprised how far down
the list python was on the fibonacci test until I started playing around with
alternative implementations and realized it was the recursion that was slowing
it down.

-- 
...................    paul winkler   ....................
custom calendars & printing: http://www.calendargalaxy.com
       A member of ARMS:   http://www.reacharms.com
            home page:  http://www.slinkp.com



More information about the Python-list mailing list