Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer

Re: Re: Does anyone have a list of 'donts' when optimizing?

by Molt (Chaplain)
on Apr 16, 2002 at 14:16 UTC ( #159489=note: print w/replies, xml ) Need Help??

in reply to Re: Does anyone have a list of 'donts' when optimizing?
in thread Does anyone have a list of 'donts' when optimizing?

Not really hints on how to optimise, more hints on how to avoid a lot of problems with it. Make sure your code works beforehand, and use unit tests such as Test::More, or Test::Harness to make sure your code remains working whilst you're torturing it. Yes, there are rather a lot more of them to chose from if you look.. this is one wheel important enough that it's worth having a few choices as to what colour you want.

Oh, and make sure you know the output from your profiler. There's nothing worse than optimising the wrong part.

<CITE>"Premature optimization is the root of all evil." - Donald Knuth</CITE>

  • Comment on Re: Re: Does anyone have a list of 'donts' when optimizing?

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://159489]
[karlgoethebier]: shmem:Ach so. Bollerwagen ist eigentlich was für Kinder. Bei uns fahren sie mit Traktoren und Feuerwehrwagen rum...
[shmem]: karlgoethebier: here abouts people are sitting in big tents, gulp beer and ingest badly scorched chicken and sausages while (not) listening to afwul musik
[shmem]: *awful
[choroba]: panem et circenses

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (8)
As of 2017-05-25 12:44 GMT
Find Nodes?
    Voting Booth?