lua-users home
lua-l archive

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


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

Yes it would be recompiled again and again - however, there is currently
no support for dumping functions and then loading them in LuaJIT 2, so
there is no other way to transfer a function to new state/lane.

Note that it works in standard Lua, the discussion is about LuaJIT.