472,364 Members | 1,864 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,364 software developers and data experts.

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 6406
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Robert Hooker | last post by:
Hi, I'm curious to know if I'm doing something wrong here, or if this is just mind-numbingly slow for a reason. In a simple WindowsFormsApplication: public Form1() { // Required for...
1
by: amessimon | last post by:
Hi I run an asp.net website on shared hosting, thie site probably gets 40-50 unique visitors a day. Ive noticed that for periods of time when the site has maybe not had visitors for maybe 20mins...
6
by: Michael | last post by:
Hi, I'm new to VB.Net but have noticed a few things about the dev interface that is really starting to get annoying. First of all, while trying to work with a form and the code module for the form...
3
by: Mario Soto | last post by:
Hi. i hava a postresql 7.4.2 in a production server. tha machine is a Pentium IV 2,6 GHZ AND 1 GB IN RAM with lINUX RH 9.0. The postresql.conf say: ...
2
by: Eduard | last post by:
I have a ASP.Net datagrid wrap in the following div: <DIV id="divPart2" style="OVERFLOW: hidden">. Another div controls the horizontal scrolling: <DIV id="scroll1" style="OVERFLOW: scroll;...
50
by: diffuser78 | last post by:
I have just started to learn python. Some said that its slow. Can somebody pin point the issue. Thans
5
by: PH | last post by:
Hi guys; I got a single processor computer, running an application that launches 2 threads. Each of these threads listens for incoming connections in a specific port, so there is a Loop ....
4
by: sommes | last post by:
It's only happen on .asp website, what's the problem? Thank you
1
by: =?Utf-8?B?RG91Zw==?= | last post by:
We have a very large code base and use the partitioned solution model for development and deployment. The problem is that in .NET 2005 the setup projects cause severe performance problems when...
5
by: lazyvlad | last post by:
Hi, I'm writing here because this issue is becoming more annoying with each day it passes. So I have a form, a dataset with a few table adapters (3 to be precise) and a datagridview.The datagridview...
0
by: antdb | last post by:
Ⅰ. Advantage of AntDB: hyper-convergence + streaming processing engine In the overall architecture, a new "hyper-convergence" concept was proposed, which integrated multiple engines and...
0
by: AndyPSV | last post by:
HOW CAN I CREATE AN AI with an .executable file that would suck all files in the folder and on my computerHOW CAN I CREATE AN AI with an .executable file that would suck all files in the folder and...
0
by: Arjunsri | last post by:
I have a Redshift database that I need to use as an import data source. I have configured the DSN connection using the server, port, database, and credentials and received a successful connection...
0
hi
by: WisdomUfot | last post by:
It's an interesting question you've got about how Gmail hides the HTTP referrer when a link in an email is clicked. While I don't have the specific technical details, Gmail likely implements measures...
1
by: Matthew3360 | last post by:
Hi, I have been trying to connect to a local host using php curl. But I am finding it hard to do this. I am doing the curl get request from my web server and have made sure to enable curl. I get a...
0
Oralloy
by: Oralloy | last post by:
Hello Folks, I am trying to hook up a CPU which I designed using SystemC to I/O pins on an FPGA. My problem (spelled failure) is with the synthesis of my design into a bitstream, not the C++...
0
by: Rahul1995seven | last post by:
Introduction: In the realm of programming languages, Python has emerged as a powerhouse. With its simplicity, versatility, and robustness, Python has gained popularity among beginners and experts...
1
by: Johno34 | last post by:
I have this click event on my form. It speaks to a Datasheet Subform Private Sub Command260_Click() Dim r As DAO.Recordset Set r = Form_frmABCD.Form.RecordsetClone r.MoveFirst Do If...
1
by: ezappsrUS | last post by:
Hi, I wonder if someone knows where I am going wrong below. I have a continuous form and two labels where only one would be visible depending on the checkbox being checked or not. Below is the...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.