Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

3
  • 5
    Only if the cost, it terms of your bullet points, is greater than the amortized value delivered. Often complexity introduces value, and in these cases one can encapsulate it such that it passes your criteria. It also gets reused and continues to provide more value. Commented Oct 17, 2008 at 10:36
  • 1
    Those first two points are the main ones to me, with the fourth point being a negative consequence of doing premature optimization. In particular, it is a red flag whenever I see someone re-implementing features from a standard library. Like, I once saw someone implement custom routines for string manipulation because he was concerned that the built-in commands were too slow. Commented May 29, 2011 at 12:47
  • 13
    Making code thread safe is not optimization. Commented May 1, 2012 at 22:47