[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Share proto object among multiple lua vm
- From: 云风 <cloudwu@...>
- Date: Thu, 20 Mar 2014 21:42:55 +0800
2014-03-20 20:51 GMT+08:00 Roberto Ierusalimschy <roberto@inf.puc-rio.br>:
> Are you really sharing the Proto object or only the bytecode (and maybe
> some other fields)? If you are sharing the Proto object, how to you
> handle its constants (field 'k')? They include strings, and short strings
> cannot be shared (at least directly), due to internalization.
>
> -- Roberto
>
I wish lua can support share strings and prototypes directly in future
version , so that we can run many lua states on many-core , and
passing the constants between lua states can be very cheap (like
Erlang does).
--
http://blog.codingnow.com