[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Performance of coroutine resume/yield
- From: Roberto Ierusalimschy <roberto@...>
- Date: Mon, 01 Mar 2004 13:04:56 -0300
> 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