lua-users home
lua-l archive

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


> I guess my questions is :
>   Does the time it take to construct a coroutine state (in C) far
> exceed the time that it would take to re-initialize (the stack) of
> an existing coroutine that has thrown an error?

Probably yes. But you should also ask another question: how frequently
will you need to construct a new coroutine instead of reusing one?  If
it only happens in case of errors, maybe the first question is not that
relevant.

-- Roberto