[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: RE: request feature of luajit2 or lanes
- From: Benoit Germain <bgermain@...>
- Date: Fri, 3 Dec 2010 09:05:42 +0100
> -----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.