Home > front end >  Pyinstaller small programs generated exe start spending four seconds, can have what way to optimize
Pyinstaller small programs generated exe start spending four seconds, can have what way to optimize

Time:09-21

Want to optimize the python program

CodePudding user response:

Fairly good 4 seconds, or don't - F when you pack, it would have been a little bit fast, the best way is to simplify the code, get rid of those unwieldy, inefficient code, at present it is not possible through the tools to help you optimize

CodePudding user response:

Remove the CMD window use pyinstaller - F XXX. Py - noConsole or pyinstaller - F - w XXX. Py
See you contains other environmental library files can be get rid of those who do not use under spec file library such as matplotlib library and so on
  • Related