Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: (jeffa) Re: Optimizing existing Perl code (in practise)

by cybear (Monk)
on Aug 19, 2002 at 10:56 UTC ( [id://191133]=note: print w/replies, xml ) Need Help??


in reply to (jeffa) Re: Optimizing existing Perl code (in practise)
in thread Optimizing existing Perl code (in practise)

The fastest script in the world is worthless if a change in your
system's directory structure breaks your code and you can't fix it.

If you bother to optimize for anything, do it for maintainability
But never forget "monitorability".

Unless your script is being called to do huge jobs, or your resources
are very restricted (Sparc Ultra 1 or Intel 486, etc.) optimization for
speed is not usually that big an issue.

However, thorough and correct logging of events, meaningful commentary
in the script itself, reusability of the code; these will all help
with maintainability.

  • Comment on Re: (jeffa) Re: Optimizing existing Perl code (in practise)

Replies are listed 'Best First'.
Re^3: Optimizing existing Perl code (in practise)
by Aristotle (Chancellor) on Aug 19, 2002 at 11:07 UTC
    Another, and I think far more common case, where optimization for speed is rightfully desirable would be the code that drives a dynamic website. See perrin's impressive eToys success story for an admittedly extreme example; when you're facing a million pageviews an hour, you don't want your code to be wasting time, but even much lesser loads make speed an important goal. Nevertheless, of course, it does not override the factor of maintainability.

    Makeshifts last the longest.

      I agree. But wouldn't you concider that a "huge job"? - cybear

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (7)
As of 2024-04-23 19:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found