Wednesday, November 12, 2008

Premature optimization and its relation to evil is discussed in a wikipedia article on optimization. Premature optimization may result in traversing many local extrema that turn out to be unacceptable, before reaching the global extremum (or an acceptable local extremum, or running out of time). What is being optimized is the time to execute a program, while neglecting the time it takes to develop it.