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

Reset rather than delete sent field on next #208

Merged
merged 1 commit into from Jun 25, 2015

Conversation

kpdecker
Copy link
Contributor

Delete was causing deoptimization due to backing class change and was unnecessary as this field was explicitly initialized to undefined and was not being checked for existence as best I can tell.

When combined with #207 saw a 40x throughput improvement under FF, from 39k operations/sec to 1.6M ops/src on http://kpdecker.github.io/six-speed/

Delete was causing deoptimization due to backing class change and was unnecessary as this field was explicitly initialized to undefined and was not being checked for existence as best I can tell.

When combined with facebook#207 saw a 40x throughput improvement under FF, from 39k operations/sec to 1.6M ops/src on http://kpdecker.github.io/six-speed/
@kpdecker
Copy link
Contributor Author

Similarly, under Chrome the execution went from 39k ops/sec to 674k ops/sec.

benjamn added a commit that referenced this pull request Jun 25, 2015
Reset rather than delete sent field on next.
@benjamn benjamn merged commit e698f12 into facebook:master Jun 25, 2015
@benjamn
Copy link
Collaborator

benjamn commented Jun 25, 2015

Thanks a ton! That speedup is impressive.

benjamn added a commit to benjamn/babel that referenced this pull request Jun 29, 2015
This includes some major runtime performance improvements:
facebook/regenerator#207
facebook/regenerator#208

And also some bug fixes relating to async generator functions:
facebook/regenerator@29d81b6929
facebook/regenerator@7d2a052ddb
facebook/regenerator@5b9dd1086d
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants