I am developing some CGI scripts, and I am trying to find a solution to reduce the "initial time" created by importing a large number of modules using.
Update:
The proposed solutions are good, but the scripts that I run run in both console mode and CGI mode if some typical HTTP environment variables are present.
In "console mode" they upload data "normally", and in "html mode" they make some replacements in real time and send them to other HTTP headers to the client.
I would like to improve startup time in both cases.
source
share