[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: [ANN] Luabins ? Trivial Lua Binary Serialization Library
- From: Luis Carvalho <lexcarvalho@...>
- Date: Sun, 22 Feb 2009 20:57:11 -0500
> References are currently serialized once for each time encountered:
>
> x = { }; { x, x }
>
> Becomes
>
> { { }, { } }
>
> Recursive table serialization fails as attempt to save table with more
> than 250 nesting levels (arbitrary customizable value). (Note that
> current implementation does twice as much recursive C calls in this
> case.)
Check
http://lua-users.org/lists/lua-l/2007-05/msg00328.html
for a simple pickler based on Roberto's struct library that recursively
serializes tables (and functions). It might give you some ideas.
Cheers,
Luis
--
Computers are useless. They can only give you answers.
-- Pablo Picasso
--
Luis Carvalho (Kozure)
lua -e 'print((("lexcarvalho@NO.gmail.SPAM.com"):gsub("(%u+%.)","")))'