Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?

Re: FastCGI?

by adrianh (Chancellor)
on Sep 21, 2002 at 09:13 UTC ( #199720=note: print w/replies, xml ) Need Help??

in reply to FastCGI?

Warning: I do not use FastCGI. My understanding of it's functionality may be wrong. Please take with appropriate sized salt particles

Short answer: No.

Longer answer...

As I understand FastCGI operates by separating out the one-time initialisation code from the per-request code.

Your FastCGI script then does the one-time initialisation once, then sits there taking requests and passing them onto the per-request code.

You get the speedup by only running the script "once" (it just sits there forever in a infinite loop serving requests) so you avoid the perl compilation hit, and the one-time initialisation hit.

So, unless you rewrite you code in the form of:

initialise(); while(FCGI::accept() >= 0) { serve_request(); };

you won't get any speed advantage.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://199720]
[shmem]: Lady_Aleena: fix it, or delete it ;-)
[Lady_Aleena]: shmem, I'm not sure how.
[shmem]: well, deleting is done with 'rm' :-P
[shmem]: you can break up the chain MP3::Tag->new($_)- >interpolate("\%S ") and test whether MP3::Tag->new($_) is true
[Lady_Aleena]: shmem, no to deletion.
[shmem]: can't help you there since that song is not on my bench

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (5)
As of 2017-04-23 22:14 GMT
Find Nodes?
    Voting Booth?
    I'm a fool:

    Results (432 votes). Check out past polls.