in reply to Re^4: The Rules of Optimization Club
in thread The Rules of Optimization Club
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.