I found the page linked under the words "reduce the complexity" ( <a href="http://ejohn.org/blog/function-call-profiling/" rel="nofollow">http://ejohn.org/blog/function-call-profiling/</a> ) a rather exemplary tale of profile-and-optimize.