I'm thinking a lot about switching from cgi to mod_perl - I'm beginning to write a lot more complex web applications and I think that mod_perl is the way to go. But before I take the plunge - it seems like it's going to be a task to get everything together and do the conversions - I need to know a couple of things:
1) Are there benchmarks out there for mod_cgi vs. mod_perl speed/performance? What about when a large part of the work is db queries? In other words, I'm looking for concrete guidance on when (in terms of script complexity and loading times for dynamic pages) it makes sense to take the plunge.
2) I'm working on a fairly big db project - and it's something designed for release. I'd want it to be able to be used in either a cgi or mod_perl context - are there a lot of things I'll have to think about? Release two different versions? I have read the coding guidelines on perl.apache.org - so I'm not looking for details, but the general strategies people have used when releasing perl code for web applications.
Thanks in advance!