The results of which seem to show to me that whilst the optimisation is faster, it's probably not going to be noticeably faster in my day to day usage. Still, faster is faster, right? Well, not always, I would see using this as a standard replacement for .each as a premature optimisation. Whilst it is faster, it's not no-brainer faster; there are other factors to consider:
- The optimisation comes in plugin form, which is extra code to download and possibly an additional http request
- Breaking from jQuery core means a possible break from future jQuery optimisations
- Faster, IMHO in this case, doesn't trump readability
No comments:
Post a Comment