▲ Pimp my JS: +200% of performance at blog.pics.io▼10 up and 2 down, posted by blackrabbit99 3867 days ago 2 comments
xedcsm 3865 days ago. link parent 2 points ▲ ▼and that optimization isn't even a factor in v8 anymore because it caches `items.length`. Not sure about other engines. The latter example could still be rewritten as: for (var i=0,len=items.length; i<len; i++){ // code is here... }