[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: on the cost of non-blocking LuaSockets
- From: Roberto Ierusalimschy <roberto@...>
- Date: Thu, 11 Dec 2014 15:08:26 -0200
> 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