in reply to (jeffa) Re: thinking about mod_perl
in thread thinking about mod_perl
In addition to embedding the Perl interpreter into the Apache process, one of the really big reasons you can get such a large speed increase is because you only have to load and compile your scripts and the modules they use once for the life of the Apache process if you use Apache::Registry (the most common method of running CGIish applications under mod_perl). You do need to make sure your programs will work ok being run this way, for the most part if they'll run under use strict; you'll be okay.
Even if you can't get your scripts to run that way (for instance if you have to get a large bunch of Perl4 code working under mod_perl) you can still take advantage of the embedded Perl interpreter by using Apache::PerlRun. There's more information over at the mod_perl documentation site and I'd particularly recommend reading the porting to mod_perl guide which spells out most of the differences between writing scripts for CGI execution and for execution under mod_perl.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Re: (jeffa) Re: thinking about mod_perl
by tilly (Archbishop) on Jul 19, 2003 at 17:35 UTC | |
by geektron (Curate) on Jul 19, 2003 at 17:40 UTC |