While investigating this I realized the `for (var i in arr)` syntax I was using in other places was ungodly slow.  Committed a fix that makes my array iteration using idiomatic for loops.