DEV Community

Discussion on: This and Bind In Javascript

Collapse
 
bbarbour profile image
Brian Barbour

I imagine the speed is difference is hardly even noticeable to the human eye. I tried it and it felt almost the exact same speed.

Collapse
 
agronick profile image
Kyle Agronick

You'll never be able to measure these types of micro-optimizations just by looking at them. But if you were to put this on a mousemove handler it would run hundreds of times a second. That is when using bind would matter.