Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7571683
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T15:43:54+00:00 2026-05-30T15:43:54+00:00

I have an application written in Python and ‘compiled’ with PyInstaller. It also uses

  • 0

I have an application written in Python and ‘compiled’ with PyInstaller. It also uses PyQt for the GUI framework.

Running this application has a delay of about 10 seconds before the main window loads and is shown. As far as I can tell, this is not due to slowness in my code. Instead, I suspect this is due to the Python runtime initializing.

The problem is that this application is started with a custom laucncher / taskbar application. The user will click the button to launch the app, see nothing appear to happen, and click elsewhere on another application. When my application shows it’s window, it cannot come to the foreground due to the rules for SetForegroundWindow.

I have access to the source for the PyInstaller win32 loader, the Python code, and even the launcher code.

My questions are:

  • How can I make this application start faster?

  • How can I measure the time spend i the first few seconds of the process’s lifetime?

  • What is the generally accepted technique for reducing time until the first window is shown?

I’d like to avoid adding a splash screen for two reasons – one, I expect it won’t help (the overhead is before Python code runs) and two, I just don’t like splash screens 🙂

If I need to, I could probably edit the PyInstaller loader stub to create a window, but that’s another route i’d rather not take.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T15:43:55+00:00Added an answer on May 30, 2026 at 3:43 pm

    I have ‘compiled’ a few wxPython apps using py2exe and cx_Freeze, None of them take more than 4 seconds to start.

    • Are you sure sure it’s not your code ?
      maybe some network or some I/O resource call holding your app ?
    • Have you tried other machine than yours? Even the fastest hardware can be slow sometimes with the wrong software config, apps or OS, try it.
    • Try timing it with timeit module.

    I never used pyQT, but with wxPython the startup speed is OK, and after the first initialize if I close and open again, it’s faster than the first time.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have complex GUI application written in Python and wxPython. I want it to
I have a small application written in Python using Flask. Right now I'm running
I have a very data-centric application, written in Python / PyQt. I'm planning to
I have a relatively large application written in Python and using PyQT as a
I have an application (currently written in Python as we iron out the specifics
I have an application written in C#.Net (Framework 2.0 if it matters). It calls
We have an application written in C#, using .NET Framework 3.0 or 3.5 or
Imagine you have a web application written in Django and Python 2.65, and MySQL
I have a regular desktop application which is written in Python/GTK and SQLObject as
I have written a Python application and would like to give my users the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.