lua-users home
lua-l archive

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


Hello!

On Fri, Jun 1, 2012 at 3:39 AM, Javier Guerra Giraldez
<javier@guerrag.com> wrote:
> 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.
>

And booleans too (but nothing else) :)

>
>> 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.
>

Agreed :)

And it all boils down to the requirement for really fast serialization
and de-serialization methods :)

Regards,
-agentzh