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


In reply to Re: Good News/Bad ? by davido
in thread Good News/Bad ? by JimDuyer

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.