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

speed up javascript generator #314

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

Conversation

tocque
Copy link
Contributor

@tocque tocque commented Oct 29, 2022

Await is not necessary in generator.

@tocque tocque changed the title speed up generator speed up javascript generator Oct 29, 2022
@hanabi1224
Copy link
Owner

This is coroutine benchmark, usage of generator aka simi-coroutine is not allowed

@lohaswinner
Copy link

lohaswinner commented Nov 29, 2022

This is coroutine benchmark, usage of generator aka simi-coroutine is not allowed

But originally coroutine execution should not return at the end of body. So usage of yield value is the feature of generator.
AsyncGenerator without await in the body doesn't have any difference from basic generator.

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

Successfully merging this pull request may close these issues.

None yet

3 participants