Should I “Compile .py Files to Byte Code after Ins

2019-04-03 07:23发布

问题:

I'm installing Python 3.2 32bit on Win7 machine, there is the following option:

Compile .py Files to Byte Code after Installation

Should I leave option unchecked or is the compilation recommended?

回答1:

Since the bytecode is unlikely to change regardless of how many times it is compiled, the interpreter can take advantage of the small speedup gain. Unless you are very short of hard drive space, you should select this option.