by gizmore on 8/18/22, 7:32 PM with 1 comments
Imagine a Web Application.
The Application has todo various things.
I) Receive user input II )Connect to DB and load Wordpress plugins III) Interpret user input IV) Calculate Output V) Send response
Now the clue is; Step II) could be done before ány connection and input is accepted from the httpd.
A hot process with loaded plugins could wait for the next client.
I could imagine to intruduce a new keyword or function: "listen_and_accept" - which will put your application into the accept state. Code before this state can be executed, but without user input, to preheat the process.
Maybe a mapping, ModuleLoader, LanguageFileLoading, Code Autoload, etc.
What do you think?
- gizmore
by metadat on 8/18/22, 8:01 PM
But how much request time will it really save? Have you measured the impact of that stage of the pipeline?