Moral of the story? Perhaps, "make local aliases for objects used in performance-critical loops." Nothing new here.
Certainly not a good argument for one style of JavaScript library over the other (which seems to be the aim).
Moral of the story? Perhaps, "make local aliases for objects used in performance-critical loops." Nothing new here.
Certainly not a good argument for one style of JavaScript library over the other (which seems to be the aim).
Sad to see this kind of silliness on HN.
As I said; it's either deliberately misleading--or the author's understanding of javascript is too limited as to be making claims that "jQuery and other libraries could have been 98% faster." A comment, by the way, which was later modified to state "if you are not a JavaScript Ninja your framework code could have been up to 98% faster."
Sorry, I don't file that knowledge under "Javascript Ninja" knowledge--and moreover, the original comment was designed to say, "My library is faster / better than all of these popular libraries."
[Edit] To my (admittedly cynical at times) that adds up to deliberately misleading.
nevertheless it shows that if you don't keep those rules in mind all the time you might end up with very slow code.
Thanks for your comment though!