hmmm, I read the performance chapters from http://www.modperlbook.org/ but there really isn't much in the way of mod_perl-specific tweaks. It's mostly about hardware tips, benchmarking tips, and apache server tweaks (and of course perl language tweaks).
The book recommended preloading perl modules which was helpful, but it is still way behind the C module (4 - 5 times fewer requests per second). Is mod_perl just that much slower than a pure C module? The code is pretty simple and even uses most of the same libs as the C module. What I'm saying is I don't think it's the code which is making such a huge difference ... I think mod_perl itself is the bottleneck. Don't get me wrong, I'm not bashing mod_perl ... I had read in a few different places that mod_perl is on par or only slightly behind C for writing Apache modules. This is why I am searching for performance tweaks to begin with - also because I really want to use perl in place of C :-) Ty ----- Original Message ---- From: Christopher Taranto <[EMAIL PROTECTED]> To: tyju tiui <[EMAIL PROTECTED]> Cc: modperl@perl.apache.org Sent: Wednesday, June 25, 2008 11:19:35 AM Subject: Re: mod_perl: performance tips On Wed, June 25, 2008 7:57 am, tyju tiui wrote: > Hi, > > > I'm curious to know if anyone has any mod_perl-specific performance tips? > I've scoured google but most of the performance tips are related > specifically to perl which is good, but my application is still quite > slow. > > I managed to work out the same module in C and I got nearly 5 times the > throughout (according to apache bench - ab) than perl module. I was > shocked by this. C is all well and fine, but the c module is much less > maintainable / portable (by me at least) compared to the perl module. > > So I'm wondering if there might be some tips / tricks that you all might > be able to share. > > Any advice would be greatly appreciated. > > > Thanks, > > > Ty Hi Ty, Try here: http://www.modperlbook.org/ Specifically - Part II: mod_perl Performance