On Friday 06 of September 2013 07:27:22 Massi wrote:
Hi everyone, I'm using pyinstaller 2.0 to create a windows executable from my python code. It is big program which involves lots of packages (pyQt, matplotlib, scipy, numpy, SqlAlchemy only to mention a few). The executable is generated correctly, but when the program runs there's a terrible slowdown of the performances (up to 5-6 times slower) with respect to the execution from code. I'm not talking about the application start time (as I read in other threads), nor the executable is build in one file mode. The problem affects all the execution of the program. Can anyone point me out any possible reason? I'm not a pyinstaller expert so please forgive me if I'm not aware of some magic flags which speed up the execution Thanks in advance!
Could you please test the development version and compare the performance?
Could you try it without the icon and version file?
version file info format was slightly changed.
On Friday 06 of September 2013 08:10:06 Massi wrote:
I tried without icon an version file, the executable is generated but nothing changed, still very slow.
In that case I suggest trying some debugging:
- look at the file ./PyInstaller/loader/pyi_importers.py
- look at the manual http://pythonhosted.org/PyInstaller/
to see how to pass the python '-v' option to pyinstaller to be able to trace import statements.
http://pythonhosted.org/PyInstaller/#getting-python-s-verbose-imports