[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Lua table in a shared memory segment
- From: Javier Guerra Giraldez <javier@...>
- Date: Thu, 31 May 2012 14:39:58 -0500
On Thu, May 31, 2012 at 2:24 PM, Matthieu Tourne
> 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.