4 ms·
There is a compilation-to-bytecode stage + lots of file look ups during start up of the Python interpreter and during every module import.
by peterfirefly 11y ago
There is a compilation-to-bytecode stage + lots of file look ups during start up of the Python interpreter and during every module import.
- zurn 11y agoPython caches the bytecode in .pyc files, so the compilation happens only the first time you import a module. In a typical Python start-up only the main source file is byte-compiled.