lua-users home
lua-l archive

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


> -----Original Message-----
> From: lua-l-bounces@lists.lua.org [mailto:lua-l-bounces@lists.lua.org]
> On Behalf Of Irayo
> Sent: Friday, December 03, 2010 12:55 AM
> To: Lua mailing list
> Subject: Re: request feature of luajit2 or lanes
> 
> This seems like it would be somewhat inefficient if you are creating
> tens/hundreds/thousands of lanes (over time) that run the same
> function.  Wouldn't it be recompiled over and over again?

The original transfer method using lua_dump is also used each time a lane is created. Admittedly dumping a function is faster than compiling it, but there is no other alternative that I know of.