By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,660 Members | 1,102 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,660 IT Pros & Developers. It's quick & easy.

EXE is very slow by starting (>10sec.) (build with PyInstaller)

P: n/a
Hi,

My Python executable created with PyInstaller is too slow by starting...
It takes about 15 secs.!!!

I am using PyQt4 libraries for creating my very simple GUI-application.

-How can I SPEED UP my executable ???
-Do you know some GOOD build switches?

Thank you very much for every idea...

Best Regards

Mark
--
Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen!
Ideal für Modem und ISDN: http://www.gmx.net/de/go/smartsurfer
Jun 27 '08 #1
Share this Question
Share on Google+
2 Replies


P: n/a
Mark Delon wrote:
Hi,

My Python executable created with PyInstaller is too slow by starting...
It takes about 15 secs.!!!

I am using PyQt4 libraries for creating my very simple GUI-application.

-How can I SPEED UP my executable ???
Try profiling it. I'm not an PyInstaller-user, but I could imagine that
loading Qt is pretty heavy. So you might try & import as few dependencies
as possible, as late as possible. That won't reduce the overall time
needed, but maybe get you going a bit faster so the user feedback is there.
In doubt - create a fancy splashscreen :P
-Do you know some GOOD build switches?
There is no such thing I fear.

Diez
Jun 27 '08 #2

P: n/a
Lie
On Jun 10, 5:29*pm, "Mark Delon" <p...@gmx.atwrote:
Hi,

My Python executable created with PyInstaller is too slow by starting...
It takes about 15 secs.!!!

I am *using PyQt4 libraries for creating my very simple GUI-application.

-How can I SPEED UP my executable ???
-Do you know some GOOD build switches?

Thank you very much for every idea...

Best Regards

Mark

--
Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen!
Ideal für Modem und ISDN:http://www.gmx.net/de/go/smartsurfer
Possibly you could use a splash screen and as have been said, you
should load modules as late as possible (that means the some import
statement is not positioned in the beginning of the code). You should
reach the event loop as soon as possible.
Jun 27 '08 #3

This discussion thread is closed

Replies have been disabled for this discussion.