Background:
Program I use to some larger package, even the import XXX from XXX it's still very big, just load module need 1 s; And this bag is not in every run scenarios are needed, so I put the package import did logic code, the use in load (lazy loading), then through test really worked, but because the program needs to use pyinstaller packaging, packaging the lazy loading module's lazy loading effect after disappeared, unused module logic code execution, execution still slow; Below are not packaged, and package after the execution of the time-consuming;
Question:
How to make use pyinstaller packaged lazy loading process failure, I guess, in the process of packaging will detect pyinstaller current with the which packages and full play to the bag and logic code every time before you perform all load all modules, whether there is a way can avoid this kind of circumstance