lua-users home
lua-l archive

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


Hi,
     Currently I am creating a Lua state for each lua thread I create and run. I think that it would be more memory efficient if I create just 1 lua state and run all the threads in that, each with its own environment. Is that true?
    I see in 5.2 we cannot set the environment of a thread and the lua_setfenv function is not there. So how can I isolate the environments to the threads?

Thanks,
Milind