lua-users home
lua-l archive

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


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

My Lua-based application wants to save a document. Internally, the document is
stored as a big set of nested tables, some of which are objects (i.e. they
have metatables pointing off at constant data).

Currently I'm loading and saving them using a serialisation tool written in
Lua. It's fairly naive and simply traverses the tables, writing them out to
disk. It works well but is rather slow.

I'd like to replace this with a C-based serialiser, for speed. I was
originally going to use Pluto, which is more than capable of doing what I
want, but I've since discovered that Pluto requires access to the Lua
internals. My app links to the system Lua libraries and so doesn't have these
available, which means I can't use it.

Can anyone recommend another C-based serialiser that might be appropriate?

- --
┌── dg@cowlark.com ─── http://www.cowlark.com ───────────────────
│
│ "There does not now, nor will there ever, exist a programming language in
│ which it is the least bit hard to write bad programs." --- Flon's Axiom
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFHB8oJf9E0noFvlzgRAqTLAJkBkH77j5RPpo6xha8zTCPg/+s5eQCgyN1w
8s1SunE7e9XP5/yhSQhzss4=
=8Cyf
-----END PGP SIGNATURE-----