Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re: Improving Perl Speeds in Apache

by oneiros (Scribe)
on Sep 15, 2001 at 06:26 UTC ( #112594=note: print w/replies, xml ) Need Help??


in reply to Improving Perl Speeds in Apache

It's a combination of several things. Here's the biggies.

  • Using mod_perl
  • Implementing your program(s) as an apache handler or Apache::Registry
  • Pre-loading all modules
  • Caching all needed data and expensive queries (this really helps)
  • Optimal SQL queries if you're using some type of database
  • General coding efficiency (writing tight code, using references, optimising accessor functions, etc.)
  • If you're returning huge pages, mod_gzip really helps cut down on transfer time
  • Tuning apache's MinSpareServers, MaxSpareServers, etc
  • Use tt2 instead of HTML::Template. It's great, and the new XS-based Template::Stash is spiffy

Hope this helps.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://112594]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (2)
As of 2023-03-30 04:04 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Which type of climate do you prefer to live in?






    Results (73 votes). Check out past polls.

    Notices?