Skip to content
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

Avoid passing arguments outside of defer so that V8 does not deoptimize defer. #66

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jimkang
Copy link

@jimkang jimkang commented Mar 11, 2017

V8 will deoptimize functions that pass arguments outside of a function, which happen in defer.

Some discussion about it:

GoogleChrome/devtools-docs#53 (comment)
http://stackoverflow.com/a/29200041/87798

While this has not been a critical performance issue for me yet, it does put warning icons in the DevTools profiler, which is really distracting, and seems fairly straightforward to address, so I made the change here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant