You'll need to need to put your code in a while loop (untested as I use
CGI::Application::Dispatch, but it should give you the right idea):
use WebApp;
use CGI::Fast();
while (my $q = new CGI::Fast) {
my $webapp = WebApp->new(QUERY => $q);
$webapp->run();
}
With the first call your code gets compiled and cached, but after that you
should see a huge improvement in speed
Dan
> -----Original Message-----
> From: Robert Hicks
> Sent: Friday, 27 October 2006 1:16 p.m.
> Subject: [cgiapp] Plain CGI -> FastCGI
>
> Do I need to do anything to my CA web application to make it
> run under FCGI instead of CGI? I have the FastCGI DLL loaded
> in my Apache instance and I have registered .fgci to be served by it.
>
> Can I just rename my index.cgi to index.fcgi and away I go? I
> am just curious to see if FCGI will speed anything up. I can
> do mod_perl so now I want to play with FCGI for a bit.
>
> Robert
---------------------------------------------------------------------
Web Archive: http://www.mail-archive.com/[email protected]/
http://marc.theaimsgroup.com/?l=cgiapp&r=1&w=2
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]