in reply to Good News/Bad ?

This is a CGI script?

mod_perl is good for high volume sites because it doesn't require the Perl interpreter to restart with each new request. However, there is some difference in how you write scripts that target mod_perl. In particular, variables should be lexically scoped. But that's not the only difference. You've got a little time before things get critical; get a good book on mod_perl and wade through it. You'll find that if you programmed your script thoughtfully the conversion may not be too difficult.

If there is database access, there is a module in Apache2 that can handle your database requests in a persistent process too. I'm not sure how good Perl's support is for this feature, but it's available.

Be sure to read the Apache documentation with respect to performance tuning. Likewise for database tuning if you're using database access.

And then profile your script. See if there are any bottlenecks to address.

Breaking it up into smaller chunks probably won't make a huge impact unless you're dealing with many thousands of lines of code. I would seek other bottlenecks first.


Dave

Replies are listed 'Best First'.
Re^2: Good News/Bad ?
by JimDuyer (Sexton) on May 14, 2011 at 17:58 UTC
    Thanks for those tips. I will get a book on mod_perl and see what I need to do. There is no database, so that part is good. I use a hash table that I worked up instead, as there are only 92 or so tr's needed. I don't know how much time I have as I almost have the syllabary done. I'll be using GD to write the text, using a ttf font of my own making. That will cut out the images loading, but really it runs quick as it is. Just had to use GD because I will be using the GD::Text::Arc module as well. I finally got it to work with my font, after pulling out some hair... Thanks for the tip on not breaking it up. Can you tell me how to best profile the script to check for bottlenecks ? Putting in some print to screens of where It is at from time to time ? Sorry, still a new kid at Perl.
      You'll find the books on mod_perl are out of date and it's hard to get started with the current version.

      However, everything I've seen recently says that mod_perl is deprecated in favor of FastCGI, with PSGI the new heir apparent.

      So go straight to PSGI.