lua-users home
lua-l archive

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


>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?

I think recompiled more times don't need more time, load luac not bit faster than lua in luajit2,
If in main lua load string buffer, then transfer string to child lanes, It can avoid file IO slow bottleneck.

2010/12/3 Irayo <irayo.lt@irayo.net>

On Dec 2, 2010, at 11:37 AM, Benoit Germain wrote:

>> -----Original Message-----
>> From: lua-l-bounces@lists.lua.org [mailto:lua-l-bounces@lists.lua.org]
>> On Behalf Of Benoit Germain
>> Sent: Thursday, December 02, 2010 6:29 PM
>> To: Lua mailing list
>> Subject: RE: request feature of luajit2 or lanes
>>
>>
>> The string is compiled directly in the lane's VM.
>
> And I don't even have to transfer the string in the target VM first, since all I need to compile it is a C pointer.
>

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?