Comment by toolslive
12 years ago
"Premature optimization is the root of all evil" I always thought this was a Knuth quote.
http://c2.com/cgi/wiki?PrematureOptimization
seems to concur.
12 years ago
"Premature optimization is the root of all evil" I always thought this was a Knuth quote.
http://c2.com/cgi/wiki?PrematureOptimization
seems to concur.
From [1], page 8:
[1] http://cs.sjsu.edu/~mak/CS185C/KnuthStructuredProgrammingGoT...
The "indicating what parts of their programs are costing the most" made me think of the color scheme when working in cython: white (C-fast), yellow (slow). http://docs.cython.org/src/quickstart/cythonize.html#determi...
of course it doesn't tell you anything about the speed of the C code, but I find the line coloring to be a nice UI for showing computational cost.
It was, but Knuth called it "Hoare's Dictum". All the evidence seems to suggest it was Knuth himself that coined the phrase though.