Does PY2EXE Compile a Python Code to run Faster?

℡╲_俬逩灬. 提交于 2019-12-01 23:45:29

py2exe just bundles the Python interpreter and all the needed libraries into the executable and a few library files. When you run the executable, it uses the bundled interpreter to run your script.

Since it doesn't actually generate native code, the speed of execution should be about the same, possibly slower because of the overhead of everything being packaged up.

Partly, it bundles the python environment with the 'precompiled' pyc files. These are already parsed into python byte code but they aren't native speed executables

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!