lua-users home
lua-l archive

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

>> I think the better way is use multiple lua states in server side
>> rather than use one large lua state.
> Agree, except the overhead of some duplicated common memory(proto,
> stringtable, etc.)
> BTW, I appreciate your common prototype solution. It would be wonderful if
> the stringtable
> can be common among multiple Lua states, but this would make the GC
> difficult. Maybe
> erlang's never-delete-atom solution can be considered....

I have tried to shared string among states by reference count ,
but I don't think it's a good idea now.