Question is self descriptive. If it can be controlled, how , i.e, what shell commands can I run in my *nix terminal ?
Why ? Because currently when I run with $ python3 *.py
the first run of my long script with many imports is taking a few noticeable seconds to start whereas subsequent runs start instantly (presumably the JIT process happening behind the scenes; I hate behind the scenes).
I want to easily keep an eye on the fresh startup performance (subsequent runs could benefit from caching, especially of I/O) as that matters to me so I would like to manually get the byte-code JIT compilation of *.py
to *.pyc
part done in a separate step.
It's currently only one file, but please answer considering multiple files.