Programming-Language-Benchmarks icon indicating copy to clipboard operation
Programming-Language-Benchmarks copied to clipboard

speed up javascript generator

Open tocque opened this issue 3 years ago • 2 comments

Await is not necessary in generator.

tocque avatar Oct 29 '22 04:10 tocque

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

hanabi1224 avatar Oct 29 '22 14:10 hanabi1224

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.

lohaswinner avatar Nov 29 '22 19:11 lohaswinner