Hi,
This is on our radar by optimising the lazy-collections
<https://github.com/WebKit/JetStream/blob/b7babdf323e64e69bd2f6c376189c15825f5c73a/generators/lazy-collections.js>
jetstream workload which covers some aspects of async functions and
iterators. If you have a more concrete use-case feel free to add it to
JetStream – this is the easiest way for us to pick this up long term.

Cheers,
Camillo

On Thu, 18 Jun 2026 at 11:58, Reve <[email protected]> wrote:

> async-iterable.ts
> <https://github.com/js-benchmark-all/micro/blob/3389ef752795a625ed1d6319b483378562db0d10/src/coroutine/async-iterable.ts>
> Basically I want this:  *async function* createAsyncGen(list:
> Promise<any>[]) { yield* list; } *
> But it is 1.4x slower than implementing the iterator protocol manually,
> which needs way more code
>
> --
> --
> v8-dev mailing list
> [email protected]
> http://groups.google.com/group/v8-dev
> ---
> You received this message because you are subscribed to the Google Groups
> "v8-dev" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion visit
> https://groups.google.com/d/msgid/v8-dev/34dcd231-06d5-4a49-b4ad-4aed09290b14n%40googlegroups.com
> <https://groups.google.com/d/msgid/v8-dev/34dcd231-06d5-4a49-b4ad-4aed09290b14n%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>
Camillo Bruni |  Software Engineer, V8 |  Google Germany GmbH |  Erika-Mann
Str. 33, 80636 München

Registergericht und -nummer: Hamburg, HRB 86891 | Sitz der Gesellschaft:
Hamburg | Geschäftsführer: Paul Manicle, Halimah DeLaine Prado

Diese E-Mail ist vertraulich. Falls Ssie diese fälschlicherweise erhalten
haben sollten, leiten Sie diese bitte nicht an jemand anderes weiter,
löschen Sie alle Kopien und Anhänge davon und lassen Sie mich bitte wissen,
dass die E-Mail an die falsche Person gesendet wurde.  This e-mail is
confidential. If you received this communication by mistake, please don't
forward it to anyone else, please erase all copies and attachments, and
please let me know that it has gone to the wrong person.

-- 
-- 
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
--- 
You received this message because you are subscribed to the Google Groups 
"v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion visit 
https://groups.google.com/d/msgid/v8-dev/CAOeS1i8QQ3XhoSyjNP6%3DYf9XOsMRg9hq4ukmTjx%3D%2Bv%2B9db8w%3Dw%40mail.gmail.com.

Reply via email to