| Size: 440 Comment: inital page |  ← Revision 4 as of 2008-07-08 11:27:43  ⇥ Size: 766 Comment: converted to 1.6 markup | 
| Deletions are marked like this. | Additions are marked like this. | 
| Line 1: | Line 1: | 
| =Situation= py2exe-ing larger projekts take some time for byte compilation at all. | = Situation = py2exe-ing larger projects take some time for byte compilation. | 
| Line 4: | Line 4: | 
| =Idea= Maybe [http://psyco.sourceforge.net psyco] will help? | = Solution = [[http://psyco.sourceforge.net|psyco]] can help both the compilation, and the final program. | 
| Line 8: | Line 8: | 
| =doing it= | = Example = | 
| Line 10: | Line 10: | 
| at the top of setup.py I inserted | To speed up Py2Exe insert at the top of setup.py: | 
| Line 15: | Line 15: | 
| psyco.log() | |
| Line 19: | Line 18: | 
| and it feels faster. No time to benchmark, yet | 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. | 
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:
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.

