in reply to Improving Perl Speeds in Apache

First I assume that you are using Perl, as is most common, to create CGI scripts.

This being the case you can start by installing mod_perl and begin by using the bundled Apache::Registry module which allows to run almost all legacy perl CGI scripts unaltered from within the mod_perl environment.

The speed enhancement is accomplished in two important ways:

  1. mod_perl 'pre-loads' perl.
  2. each apache process or child will only compile the script once

CGI execution speed increases of 400-1000% have been observed.

mitd-Made in the Dark
'My favourite colour appears to be grey.'

Replies are listed 'Best First'.
Re: Re: Improving Perl Speeds in Apache
by andye (Curate) on Sep 15, 2001 at 22:06 UTC
    Plus, if there's a database involved, use shared database handles (Apache::DBI is useful for this). Oracle suggest this can make an order of magnitude difference in speed.

    Andy.