Skip to content

promote yield* next instead of yield next #2

@jonathanong

Description

@jonathanong

it's faster: tj/co#43

at least it'll work with or without it. it's an easy win. testing koa's benchmark, here's loa without yield*:

screen shot 2013-11-09 at 2 36 29 pm

with yield*:

screen shot 2013-11-09 at 2 36 57 pm

only problem is that next() should always return a generator. that's an easy fix.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions