On Wed, Sep 16, 2009 at 10:15 PM, Jenn G. <practicalp...@gmail.com> wrote:
> but nobody run Java or PHP as CGI.
> the only thing I heard is somebody run php as fastcgi under lighttpd.

Some cheap ISPs run PHP as CGI for security reasons.  My point is, it
doesn't make any difference if Perl is slow when you run it as CGI,
since you don't need to run it as CGI any more than you need to run
Java that way.

> mod_perl loads and compiles perl scripts only once, but CGI loads and
> compiles them every time for each request.
> Am I right?

That's right.  In both cases the perl code is compiled, but with
mod_perl the perl interpreter is kept in memory so it doesn't need to
recompile it each time.

- Perrin

Reply via email to