lua-users home
lua-l archive

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

> Are there any general performance guidelines on the relative cost of 
> coroutine.resume/yield?

As a general quideline, a pair coroutine.resume/yield should be a little
more expensive than two function calls. Coroutine creation costs more or
less the same as the creation of a few (4~6) empty tables.

However, with several thousand coroutines, I would suggest that you
do some previous testing.

-- Roberto