Posted at January 20, 2009 by Nicholas C. Zakas Tags: JavaScript, Loops, Memoization, Performance, Recursion Last week, I covered the first reason why JavaScript can take too long to execute: too much happening in a loop. There’s a similar problem with functions in that sometimes they’re just doing too much. Usually this means there’s too many loops (as opposed to too much happening in a loop), to