n-body problem at shootout.alioth.debian.org

bearophileHUGS at lycos.com bearophileHUGS at lycos.com
Sat Oct 7 11:25:12 CEST 2006

> You might also put the outer loop calling function advance so many
> times, into the advance function:

Remember that the autors of the Shootout refuse some changes to the
code (like this one), to allow a fair comparison. The rules are strict.

I have improved the Psyco version:

If I find the time I'll try to speed up the Python version too
following some of the suggestions of this thread. Note that on that
site there are 4 different comparisons.

The interesting question is how the Lua JIT can be that fast, it's
often faster than Psyco:



More information about the Python-list mailing list