Hacker News new | ask | show | jobs
by nkohari 4153 days ago
Do you have a source? I don't understand how a closure over a single variable (this), instead of reassigning the value of the variable in a specific scope, would result in a 50% improvement in performance. Also -- the phrase "50% improvement in performance" itself is kind of dubious, no?
1 comments

I wrote a simple benchmark, and `bind` seems to be mind-boggling slow.

http://jsperf.com/self-this-vs-bind

You can write your own or use lodash's for a dramatic speed increase. You can even stomp on Function.prototype.bind.