擅长:python、mysql、java
<p>在您的程序过程中没有性能提升。它只会缩短启动时间。</p>
<blockquote>
<p>A program doesn't run any faster when it is read from a ‘.pyc’ or
‘.pyo’ file than when it is read from a ‘.py’ file; the only thing
that's faster about ‘.pyc’ or ‘.pyo’ files is the speed with which
they are loaded.</p>
</blockquote>
<p><a href="http://www.network-theory.co.uk/docs/pytut/CompiledPythonfiles.html" rel="nofollow">http://www.network-theory.co.uk/docs/pytut/CompiledPythonfiles.html</a></p>
<p>下一步优化的pyo文件只是从代码中删除doc字符串。</p>