n-body problem at shootout.alioth.debian.org
Giovanni Bajo
noway at sorry.com
Sat Oct 7 03:52:34 EDT 2006
Peter Maas wrote:
> I have noticed that in the language shootout at
> shootout.alioth.debian.org the Python program for the n-body problem
> is about 50% slower than the Perl program. This is an unusual big
> difference. I tried to make the Python program faster but without
> success. Has anybody an explanation for the difference? It's pure
> math so I expected Perl and Python to have about the same speed.
Did you try using an old-style class instead of a new-style class?
--
Giovanni Bajo
More information about the Python-list
mailing list