Differences between revisions 3 and 4
Revision 3 as of 2006-08-07 03:19:50
Size: 764
Comment:
Revision 4 as of 2008-07-08 11:27:43
Size: 766
Editor: localhost
Comment: converted to 1.6 markup
Deletions are marked like this. Additions are marked like this.
Line 5: Line 5:
[http://psyco.sourceforge.net psyco] can help both the compilation, and the final program. [[http://psyco.sourceforge.net|psyco]] can help both the compilation, and the final program.

Situation

py2exe-ing larger projects take some time for byte compilation.

Solution

psyco can help both the compilation, and the final program. as Armin Rigo writes... "Psyco is a Python extension module which can massively speed up the execution of any Python code."

Example

To speed up Py2Exe insert at the top of setup.py:

   1 import psyco
   2 psyco.full()

and it will compile 2-20 times faster (depending on your code). This can also improve your programs running speed if you insert it in top of the main module.

To generate a log of the process (there is no need to with Py2Exe, but you might want to for your code) simply insert the line "psyco.log()" in-between the two others.

SpeedUp (last edited 2008-07-08 11:27:43 by localhost)