lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]

What's the cost of using C coroutines? What if you need lots of coroutines?
What if sometimes those coroutines want to use lots of C stack space for
non-yielding code?

This is what worried me about some of the previous proposals for using C
coroutines. They work well if you keep coroutine usage limited and/or you
can live with small C stacks for the coroutines. They don't seem to scale as
well as something like Mike's RVM changes, however.

That being said, the RVM code is significantly harder to get one's head
around than a C coroutine approach.