Skip to content

Enable specialization of iteration over generators, for gen():, and awaiting coroutines, await coro() #96793

Closed
@markshannon

Description

@markshannon

We want to be able to specialize iteration over generators and awaiting coroutines. Both for PEP 659 and for higher tier optimizers.

For the theory see faster-cpython/ideas#457

To do this we need:

Edited:
Remove the requirement for a GEN_RETURN_VALUE instruction. We might want one to simplify frame popping, but it isn't needed for specializing.

Metadata

Metadata

Assignees

No one assigned

    Labels

    performancePerformance or resource usage

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions