Let's try that again: Faster loading?

Eamonn Sullivan wrote:

Apologies if this is an old question, but I wasn't able to find an
answer by googling or searching the archives. I have two simple
applications using wxWidgets (2.5.1.5u) and python (2.3) that does
some calculations on stock prices (find the last time a stock moved
this much or was at today's value). I'm distributing it using py2exe
(0.5.0). The main windows in both cases are dialog-like with less
than two dozen controls each. The app executables are just 24KB each.
But of course those load many tens of megabytes of python and wx code
before running.

The problem I'm having is that they take a long time to start up. On
some our slower PCs, it can take a minute or more.
[...]

I don't know how much overhead that py2exe imposes, and all the other
posts on this are probably more helpful, but just a thought:

Are you using the "old" idiom:

from wxPython.wx import *
or
import wx

The reason I ask is that the former is known to be slower, because
of the size of the resulting namespace, and you didn't include that
part in your example; if you do this in the main script prior to
the splash, it will make it take longer.

(There were actually many posts on this topic in the past;
unfortunately, archive search seems to be broken, as I can't find
anything I've even posted in any group since Mon, 16 Jun 2003,
19:00:27 CEST and ASPN search also seems completely broken.
AIRC, the discussion occurred late last year...)

Regards,
/Will

ยทยทยท

--
Will Sadkin
Parlance Corporation
www.nameconnector.com