ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> py2exe-users
py2exe-users
[Py2exe-users] Startupt time: .exe slower than .py
by POYEN OP Olivier (DCL) other posts by this author
Jun 16 2004 6:25AM messages near this date
Re: [Py2exe-users] RE: Startupt time: .exe slower than .py | [Py2exe-users] utf-16
Hi all,

just subscribe to py2exe ml.

python 2.3
py2exe 0.5.0
wxpython 2.4.2.4
Pentium 4, 512 Mb RAM/3.2 Ghz - Win 2K SP3

This may be a known issue (/feature) or perhaps this is totally understandable once you know
 py2exe internals, but I have different startup time between script and its .exe


I saw that between a script launched in command line 

python myscript.py

and an executable from the same file made with py2exe

./myscript.exe

the .exe is noticably slower to launch than the script

The script is a  wxpython software and after initialisation and creation of the gui, I start
 the initialization of a cache system, which output debug stuff.
The whole system is also connecting to another propriatery system to fecth data. 
But anyway, those connections should "spend" the same time wheter they came from script or f
rom .exe
And clearly, my debug output are far more slower to be printed in the .exe stuff than in the
 script version.


To give you borring details, both files, (sources, executables, images,..) are on the networ
ks, not on the local HD. 

I really don't know why, but, like always, the only things I can deliver are .exe and not .p
y files. 
So, I have to stay with .exe.

I tweak my script a lot, and it's startup time is reasonably low, but the startup time of th
e .exe is like 4 or 5 times longer. 

Is this a known issue, or the consequence of the whole py2exe system, and then I can't do an
ything about it ? 
Or does it came from the fact that I have to read from a big librairie .zip file (2 MO. not 
so huge), in order to load primary modules, which turns to be slow.

Is there anything I can do about it ? 
Or is there any debug options I can turn on to know more about what happens ?

Thanks for any comments/help/stuff.....

And by the way, did I really need to say that I enjoy using py2exe, that without it I would 
be obliged to use VB or VisualC++, or worse to stop using python. 

Thanks for giving my job some hapy(thon)ness !


---OPQ
Long signature following


-------------------------------------------------------
This SF.Net email is sponsored by The 2004 JavaOne(SM) Conference
Learn from the experts at JavaOne(SM), Sun's Worldwide Java Developer
Conference, June 28 - July 1 at the Moscone Center in San Francisco, CA
REGISTER AND SAVE! http://java.sun.com/javaone/sf Priority Code NWMGYKND
_______________________________________________
Py2exe-users mailing list
Py2exe-users@[...].net
https://lists.sourceforge.net/lists/listinfo/py2exe-users

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved