python -m compileall directory # directory where python source code
Generating __pycache__ directory under the directory, the directory contains the source code file corresponding precompiled .pyc
python file .pyc
At this point execution is faster (actually compile faster, or eliminating the steps compilation (but if it shall modify the source code recompilation))
Instant faster, in fact, still be interpreted. Still need a translator python. This is different with the c language, c language is translated directly into the target machine code, no translator when executed
hexdump first.cpython-36.pyc to view binary files