lua-users home
lua-l archive

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

Good question; I just picked this up somewhere, and cannot find a definitive answer; do you have it?
And I suppose my wording glosses over the fact that it depends on what you are doing, right?

So is there a known 'memory overhead' for a tasklet?

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...)

On Fri, Apr 24, 2009 at 7:38 AM, Richard Tew <> wrote:
On Thu, Apr 23, 2009 at 3:27 PM, Phoenix Sol <> wrote:
> Stackless's 'tasklets' weigh only a few kilobytes a piece; what does a lua
> coroutine weigh?

How do you know they are only a few kilobytes a piece?