Issue #3669 - Use call() for better performance#3687
Conversation
call() performance twice as better than apply() http://jsperf.com/call-apply-segu
|
@rajeshsegu |
|
I did, but I thought I would try with a small change first. :) |
|
i think it would be no problem to changed the others too, because it isn't a very complicated change ;) |
|
I think it would be really hard to move all the existing apply() to call() as array object is passed in most ocassions. Obj.prototype.func.apply(scope, arrayObj); We could at-least start using .call() when we have definite set of arguments. |
|
yeah you're right. didn't think of that. |
|
I thought you had already merged the pull request. |
|
actually i dont't have commit rights for the repo ;) |
call() performance twice as better than apply()
http://jsperf.com/call-apply-segu