[Tutor] Compiling Python to Native Machine Code
Alan Gauld
alan.gauld at blueyonder.co.uk
Tue Sep 2 20:06:41 EDT 2003
> Is it possible to compile Python directly to native machine code?
The reason
> I ask is because I am using Python to do some pretty intensive
simulations
> that take anywhere between 10 minutes and a few hours to run. I
assume that
> if I could compile it directly to machine code that this may speed
up my
> simulation times.
There has been a recent thread on comp.lang.python about
using something called Psycho(?) (sourceforge?) which seemed to get
Python code running around half the speed of C (ie about 5-10
times faster than usual!)
Significantly this test was done using math calculations so it
might work for you too. Another tool in a similar vein that was
mentioned was Pyrex...
Try searching google groups for the references.
Alan g.
More information about the Tutor
mailing list