On Wed, Feb 11, 2015 at 10:01 AM, Victor Stinner <[email protected]> wrote:
> By the way, Trollius has currently the performance issue of recursive > coroutines. It doesn't use yield-from and it currently creates a new > task for each sub-coroutine. I read somewhere that Tornado solved this > issue by following coroutines instead of treating them independently. > We can probably implement the same optimization strategy in trollius. > Tornado still creates a new Runner for each nested coroutine, so it is slower than yield-from. You might be thinking of the fact that we bypass the Runner for cases where a coroutine completes in a single pass (i.e. without executing any yields). -Ben
