[viff-devel] [issue51] Psyco
Martin Geisler
tracker at viff.dk
Fri Jul 25 09:45:03 PDT 2008
New submission from Martin Geisler <mg at daimi.au.dk>:
>From http://psyco.sourceforge.net/introduction.html:
Psyco is a specializing compiler. In a few words let us first see:
What you can do with it
=======================
In short: run your existing Python software much faster, with no
change in your source.
Think of Psyco as a kind of just-in-time (JIT) compiler, a little
bit like what exists for other languages, that emit machine code on
the fly instead of interpreting your Python program step by step.
The difference with the traditional approach to JIT compilers is
that Psyco writes several version of the same blocks (a block is a
bit of a function), which are optimized by being specialized to some
kinds of variables (a "kind" can mean a type, but it is more
general). The result is that your unmodified Python programs run
faster.
I have tried using Psyco in benchmark.py when running all three
players on the same machine and I got a speedup from 17 to 15 seconds
when doing 5000 multiplications.
But we should test is some more to determine if it can help us.
----------
messages: 138
nosy: mg
status: unread
title: Psyco
____________________________________
VIFF Issue Tracker <tracker at viff.dk>
<http://tracker.viff.dk/issue51>
____________________________________
More information about the viff-devel
mailing list