Re:Python startup time: milliseconds matter
by tomc1985 on Wednesday May 02, 2018 @05:42PM
(#16981402)
Don't forget
find . -type f -name "*.py" -delete
right afterwords.
Also note calls to imp.load_source need to change to imp.load_compiled, and any .py files references directly in code need to be changed to .pyc (this is with 2.7, not sure about 3.x)
Also note calls to imp.load_source need to change to imp.load_compiled, and any .py files references directly in code need to be changed to .pyc (this is with 2.7, not sure about 3.x)