469,946 Members | 1,414 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,946 developers. It's quick & easy.

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

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
2 5472
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
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.

Similar topics

1 post views Thread by amessimon | last post: by
6 posts views Thread by Michael | last post: by
3 posts views Thread by Mario Soto | last post: by
2 posts views Thread by Eduard | last post: by
50 posts views Thread by diffuser78 | last post: by
5 posts views Thread by PH | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.