Saturday, October 13, 2012

Coding Practice - Premature optimization is the root of all evil - DonaldKnuth

"Optimization can reduce readability and add code that is used only to improve the performance. This may complicate programs or systems, making them harder to maintain and debug. As a result, optimization or performance tuning is often performed at the end of the development stage."
-- http://en.wikipedia.org/wiki/Program_optimization


"Programmers waste enormous amounts of time thinking about, or worrying about, the speed of noncritical parts of their programs, and these attempts at efficiency actually have a strong negative impact when debugging and maintenance are considered. We should forget about small efficiencies, say about 97% of the time: premature optimization is the root of all evil. Yet we should not pass up our opportunities in that critical 3%."

-- DonaldKnuth

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.