Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: Re: Re: Speeding up commercial Web applications

by BrowserUk (Patriarch)
on May 08, 2003 at 03:56 UTC ( [id://256468]=note: print w/replies, xml ) Need Help??


in reply to Re: Re: Speeding up commercial Web applications
in thread Speeding up commercial Web applications

Sometimes, but only sometimes, small changes to the code can reap large rewards. As an example, if the application truely is Perl 4 code, then I believe (but could be wrong) that Perl 4 didn't support hashes. Assuming for the moment that is true -- I'll be quickly corrected if it isn't:) -- and (for example) the application does any sort of lookups into arrays of data using grep, then changing the array(s) being search linearly to hash(es) could have a dramatic effect without too much effort.

I'm not really sure I understand the reluctance to modify. You said this is because you hope to upgrade to the next version sometime in the future. If you make changes now, how does that stop you upgrading? The only reason refactoring the code (ie. not changing what the code does, but only the way it does it) would impact your upgrade, is if you discovered that the later version wasn't as efficient as your modifed version. In which case you would have very strong grounds for requesting that your changes be fed back into the latest version before you took delivery. The supplier might even thankyou for it and reduce your bill (some chance:). Their customers almost certainly would thankyou.

At the end of the day, if you change nothing, nothing will change. If you can't change the code, then you already know the other options. More memory, a faster processor, harddisks etc.

I think you already knew this though, so it begs the question, what were you hoping for?

Oh! You have already done the Monk's ritual haven't you?


Examine what is said, not who speaks.
"Efficiency is intelligent laziness." -David Dunham
"When I'm working on a problem, I never think about beauty. I think only how to solve the problem. But when I have finished, if the solution is not beautiful, I know it is wrong." -Richard Buckminster Fuller
  • Comment on Re: Re: Re: Speeding up commercial Web applications

Replies are listed 'Best First'.
Monk's ritual
by BrowserUk (Patriarch) on May 08, 2003 at 14:58 UTC

    Take three jars of incense, two large black candles, a mag tape containing the sources, floppies or a cd might work, to a virgin piece of consecrated ground, within earshot of the monastery bells (not sure if it would work via internet radio??), at dawn on the third Tuesday after the first Monday before Ash Wednesday, by the Gregorian calandar (See Date::Manip, but take 3 strong men with you) ....









    Moveed here from my scratchpad to free its use for other things and maintain the link.

Re: Re: Re: Re: Speeding up commercial Web applications
by pfaut (Priest) on May 08, 2003 at 04:08 UTC

    Perl 4 did have hashes but not references (or at least very limited support for references). Nested data structures were out of the question. I have some Perl 4 code I still use that uses join and split a lot to accomplish what I'd do today with an HoH.

    90% of every Perl application is already written.
    dragonchild
Re: Speeding up commercial Web applications
by PotPieMan (Hermit) on May 08, 2003 at 14:16 UTC
    I think you already knew this though, so it begs the question, what were you hoping for?

    A magic wand, a different angle, anything that I hadn't thought of. Can't you tell? I'm frustrated.

    Nevertheless, thanks for your help. We will probably end up delaying until new hardware is in the budget. :-/

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://256468]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others about the Monastery: (5)
As of 2024-04-19 10:19 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found