in reply to mod_perl implementation
Just installing ( assuming it was done correctly ) mod_perl may or may not increase the speed of your script.
As I undestand it, mod_perl caches scripts and library files, and library files are where you get the most benefit from
Consider this example: Suppose all of your scripts in your server uses CGI.pm. You *know* that this is a rather big module. I'm sure it's got tons of enhancements, but I'm sure it takes longer than a trivial module.
But with mod_perl, you get the benefit of having this CGI.pm compiled and loaded in memory in each httpd child. So you save the time to recompile and load the module for every single script that you run. That's cool.
Now suppose each script "use"s 4-5 modules of about the same size as CGI.pm. That's A LOT.
Also, in my view the biggest difference ( that I could feel ) comes in when you have some DBI connection that you need to open within your script. Using mod_perl with Apache::DBI, you get to keep your DBI connections open ( for a while anyway )! Now, *that* you can feel
So I think it really depends on what you are doing in your script. If you just have short scripts, which don't load many modules and don't really require costly things like opening up a DBI connection, then my guess is that you are not going to see much difference
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: mod_perl implementation
by Hero Zzyzzx (Curate) on Jul 12, 2001 at 17:47 UTC | |
by lestrrat (Deacon) on Jul 12, 2001 at 23:22 UTC |