App created with PyInstaller has a slow startup

前端 未结 6 2224
伪装坚强ぢ
伪装坚强ぢ 2020-12-04 15:32

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

6条回答
  •  借酒劲吻你
    2020-12-04 16:18

    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.

提交回复
热议问题