Execution delay

29 views
Skip to first unread message

Yitzhak Weissman

unread,
Aug 25, 2020, 3:14:39 AM8/25/20
to PyInstaller
In script mode, my program is executed immediately after I press "Run". This is not the case with the .exe version made by PyInstaller, and there is a certain delay between launch and execution start. This delay varies in different computers, and typical values are between 10 to 30 seconds. During this time nothing is displayed on the screen, and the user may get the wrong impression that the program stalled.
Is there a way to reduce this delay? Or, alternatively, to display during this time messages on launch progress, or maybe a progress bar?

Steve Barnes

unread,
Aug 25, 2020, 4:42:42 AM8/25/20
to pyins...@googlegroups.com

Yitzhak,

 

If you are using “One File” mode the file needs to be unpacked into a python installation on each run – this is the most likely explanation for the varying delay. I suggest trying “One Directory” mode.

 

Steve Barnes

 

Sent from Mail for Windows 10

--
You received this message because you are subscribed to the Google Groups "PyInstaller" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pyinstaller...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/pyinstaller/103e052c-6cd0-44ef-b622-9fd319caabf7n%40googlegroups.com.

 

its...@gmail.com

unread,
Aug 25, 2020, 12:42:41 PM8/25/20
to pyins...@googlegroups.com

bwoodsend

unread,
Aug 25, 2020, 3:37:41 PM8/25/20
to PyInstaller
There is a splash screen option [coming soon](https://github.com/pyinstaller/pyinstaller/pull/4887) - you can test it now if you want. To actually speed up initialisation from a onefile archive, the only thing you can really do is squeeze your package as small as possible so that there is less to extract. We also have plans for an installable package option which would be like a onefile app but it will unpack into your program files and stay there rather than a temporary directory. This would mean you'd only need to wait the 1st time you run it. But I don't think anyone has even started on that...
Reply all
Reply to author
Forward
0 new messages