Premature optimization: Not necessarily the root of all evil

added by dpeterson
9/22/2011 11:11:19 AM

161 Views

Keyvan Nayyeri gives us an excellent discussion piece regarding the use and abuse of Knuth's quote "Premature optimization is the root of all evil". Nayveri goes on to explain what Knuth really meant by this quote, in the context of his overall work. This is a must read for any developer!


1 comments

dpeterson
9/22/2011 10:20:37 AM
Not only is optimization important, I consider poor performance to be a defect. Knuth's quote is not an excuse to ignore performance. It's also important to realize that optimization does not only refer to shaving clock cycles, and that simply going for speed isn't necessarily optimization...sometimes it's just making your program faster at the cost of something else.