lua-users home
lua-l archive

Re: Lua table in a shared memory segment

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


On Thu, May 31, 2012 at 2:24 PM, Matthieu Tourne
<matthieu.tourne@gmail.com> wrote:
> But fundamentally a key value store is different than a table, and
> can't store nested tables for instance.
that's a limitation of the underlying rbtree, not of Lua.
specifically, that it only stores strings and numbers.
> Would it be possible to memcpy the entire representation of Lua table
> and store it in shared memory ?
no. complex structures full of pointers don't survive a naive memcpy.
 you'd need some serialization step.
-- 
Javier

AltStyle によって変換されたページ (->オリジナル) /