Good question; I just picked this up somewhere, and cannot find a definitive answer; do you have it?<br>
And I suppose my wording glosses over the fact that it depends on what you are doing, right?<br><br>So is there a known 'memory overhead' for a tasklet?<br><br>And is there a known overhead for a lua coro? (Maybe it would be more fair to compare a tasklet to a 'Coco' coroutine... but still I wonder what the overhead of wrapping a function with coroutine.wrap() is...)<br>
<br><br><div class="gmail_quote">On Fri, Apr 24, 2009 at 7:38 AM, Richard Tew <span dir="ltr"><<a href="mailto:richard.m.tew@gmail.com">richard.m.tew@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="im">On Thu, Apr 23, 2009 at 3:27 PM, Phoenix Sol <<a href="mailto:phoenix@burninglabs.com">phoenix@burninglabs.com</a>> wrote:<br>
> Stackless's 'tasklets' weigh only a few kilobytes a piece; what does a lua<br>
> coroutine weigh?<br>
<br>
</div>How do you know they are only a few kilobytes a piece?<br>
<br>
Cheers,<br>
<font color="#888888">Richard.<br>
</font></blockquote></div><br>