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.
-
Are you posting in the right place? Check out Where do I post X? to know for sure.
-
Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
<code> <a> <b> <big>
<blockquote> <br /> <dd>
<dl> <dt> <em> <font>
<h1> <h2> <h3> <h4>
<h5> <h6> <hr /> <i>
<li> <nbsp> <ol> <p>
<small> <strike> <strong>
<sub> <sup> <table>
<td> <th> <tr> <tt>
<u> <ul>
-
Snippets of code should be wrapped in
<code> tags not
<pre> tags. In fact, <pre>
tags should generally be avoided. If they must
be used, extreme care should be
taken to ensure that their contents do not
have long lines (<70 chars), in order to prevent
horizontal scrolling (and possible janitor
intervention).
-
Want more info? How to link
or How to display code and escape characters
are good places to start.
|