-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[CLOSED] Issue #3669 - Use call() for better performance #3456
Comments
Comment by WebsiteDeveloper
|
Comment by rajeshsegu I did, but I thought I would try with a small change first. :) |
Comment by WebsiteDeveloper i think it would be no problem to changed the others too, because it isn't a very complicated change ;) |
Comment by rajeshsegu 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. |
Comment by WebsiteDeveloper yeah you're right. didn't think of that. |
Comment by rajeshsegu I thought you had already merged the pull request. |
Comment by WebsiteDeveloper actually i dont't have commit rights for the repo ;) |
Issue by rajeshsegu
Wednesday May 01, 2013 at 05:19 GMT
Originally opened as adobe/brackets#3687
call() performance twice as better than apply()
http://jsperf.com/call-apply-segu
rajeshsegu included the following code: https://github.com/adobe/brackets/pull/3687/commits
The text was updated successfully, but these errors were encountered: