Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

comment on

( [id://3333]=superdoc: print w/replies, xml ) Need Help??
I have been assigned the unfortunate task of improving the performance of a commercial Perl application. We have the source to this application, and are free to make modifications to it. However, we do not want to make very many major modifications, in hopes of being able to upgrade to new versions of the product in the future.

To give you a general idea of the issue, the application takes approximately 10 seconds to generate each page. Between 3 and 5 seconds is an "acceptable" load time, so there's a lot of work to do. I've made optimizations where possible, trying to improve the application's use of the database, but I've only shaved off a few milliseconds here and there. Again, I've limited myself becase I want to be able to upgrade later.

The overriding problem is that the application feels like it was written for Perl 4. By that I mean that there are lots of global variables, many local variables, and definitely no use strict. That makes running the application in mod_perl fairly difficult, if not impossible. Apache::Registry definitely seems to be out. Apache::PerlRun looks like my best bet. I've run across Good place to learn Apache::PerlRun, but given that the application feels like Perl 4 code, I am not very hopeful.

Finally, FastCGI and SpeedyCGI are probably out of the question because our systems group won't support either.

Do you think I have any options? I would prefer not to have to recommend a new hardware purchase.

Thanks,
-Daniel


In reply to Speeding up commercial Web applications by PotPieMan

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



  • Are you posting in the right place? Check out Where do I post X? to know for sure.
  • Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
    <code> <a> <b> <big> <blockquote> <br /> <dd> <dl> <dt> <em> <font> <h1> <h2> <h3> <h4> <h5> <h6> <hr /> <i> <li> <nbsp> <ol> <p> <small> <strike> <strong> <sub> <sup> <table> <td> <th> <tr> <tt> <u> <ul>
  • Snippets of code should be wrapped in <code> tags not <pre> tags. In fact, <pre> tags should generally be avoided. If they must be used, extreme care should be taken to ensure that their contents do not have long lines (<70 chars), in order to prevent horizontal scrolling (and possible janitor intervention).
  • Want more info? How to link or How to display code and escape characters are good places to start.
Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (4)
As of 2024-03-29 12:39 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found