I wrote a relatively large program using pyqt. After packaging, it starts very slowly, about 3 to 10 seconds. The python packaging mechanism requires that all modules must be loaded before starting the program, so adding a startup interface to python also It depends on the entire python program and pyqt library to run, so it is of no use.
How to quickly start a loading startup interface window? It should be implemented in other languages, right?
阿神2017-05-16 13:26:57
For the win platform, use C to directly adjust CreateWindow[Ex] to ensure it flies. I don’t understand other platforms
伊谢尔伦2017-05-16 13:26:57
Are you using PyInstaller? If so, try using onedir mode. The default is onefile, which will cause the slow loading phenomenon you mentioned.