issues
search
arturadib
/
agility
Javascript MVC for the "write less, do more" programmer
http://agilityjs.com
MIT License
542
stars
70
forks
source link
Improve internal object creation and loop performance
#27
Open
arturadib
opened
13 years ago
arturadib
commented
13 years ago
These were suggested by @clyfe:
don't use Object.create, it's 95% slower than constructors
http://jsperf.com/object-create-vs-crockford-vs-jorge-vs-constructor/21
prefer plain old for(i=0; i<x; i++) loops over "for x in y" .each .map etc, it's faster
These were suggested by @clyfe: