Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re: Recommendation for a persistent perl solution?

by perlfan (Vicar)
on May 26, 2020 at 00:24 UTC ( [id://11117252]=note: print w/replies, xml ) Need Help??


in reply to Recommendation for a persistent perl solution?

Some generate C code with B::C with a lot of stuff initialized in the BEGIN block, then compile it. I've only played with it so YMMV. What does this give you? Assuming your start up time is related to local initializations (variables, loading file contents, etc); then it'll allow you to compile an executable that has already done all the stuff you shove in BEGIN

If the start up is due to network related things or truly dynamic things, then it that won't help you. You only option is to daemonize it. I can't recommend any from personal experience, but there are a few modules on metacpan to choose from for this. And if SpeedCGI is the same thing as speedy, then yes it is ancient and probably best to avoid.

Another option that comes to mind is starman.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11117252]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others scrutinizing the Monastery: (5)
As of 2024-04-26 08:09 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found