Beefy Boxes and Bandwidth Generously Provided by pair Networks Russ
Perl-Sensitive Sunglasses
 
PerlMonks  

Re^3: The Rules of Optimization Club

by tinita (Parson)
on Apr 01, 2012 at 13:41 UTC ( #962882=note: print w/ replies, xml ) Need Help??


in reply to Re^2: The Rules of Optimization Club
in thread The Rules of Optimization Club

I agree with that. it's just that I read people quoting the famous "premature optimization" thing way too often, and most of the time they forget to mention (or probably to even read) the rest of the quote.
So I got really allergic to any "don't optimize" statements =)


Comment on Re^3: The Rules of Optimization Club
Re^4: The Rules of Optimization Club
by petdance (Parson) on Apr 01, 2012 at 16:54 UTC
    Nobody is saying don't optimize. In fact, I've never seen anyone say that "you should never optimize your code." If you can point me to someone who says that, I'd love to see it.

    It's all about what "premature" is.

    If your code is broken, then it's premature.

    If you don't know the costs of your code, it's premature.

    xoxo,
    Andy

      Nobody is saying don't optimize.
      If you don't want to give that expression, I suggest you don't start posts with
      The first rule of Optimization Club is, you do not Optimize.
      Because you could have fooled me.

      If your code is broken, then it's premature.
      Eh, no. That's way to general. If a landslide just dumped a few metric tons of mud on my driveway, I'm not going to measure my progress while I'm digging with a spoon. I'll optimize that away right from the start. There's no point in continuing a work in progress of a fix if it's going to be too slow. Even if the fix leads to unbroken code. It's better to turn back and optimize *now* before spending the effort to reach an unsatifying situation.

      While I agree that many optimizations are premature, I don't agree this is always true.

        If you don't want to give that expression, I suggest you don't start posts with "The first rule of Optimization Club is, you do not Optimize."

        Suggestion noted. I figure the intent is clear enough when rules 2-7 explain parameters for doing optimization.

        xoxo,
        Andy

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (15)
As of 2014-04-21 15:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (496 votes), past polls