lua-users home
lua-l archive

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


> Is the yield/resume known to be a costly operation that should be used
> carefully ?

On a very crude test in my machine, the combined cost of a resume/yield
is around 5 times the cost of calling an empty function. I would not
say that this is costly... (Keep in mind that each resume is a function
call, and each yield is another function call.)


-- Roberto