You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
JS engines didn't optimize fn.bind in past and we record that fact in comment. But JS engines are constantly evolving and our implementation is slower, haha.
Since Function.prototype.bind is more used in JS world, I believe JS engines will optimize the native usage more, like this. It seems better to use native one.
Version
2.5.13
Reproduction link
https://jsperf.com/vue-bind-perf
Steps to reproduce
Run tests across some modern browsers to see the result.
What is expected?
Custom bind implementation performance is the same level as native.
What is actually happening?
Custom bind implementation performance is lower than native.
Tested in:
I believe it is not an issue at all, but I think it is something which can be improved.
The text was updated successfully, but these errors were encountered: