lua-users home
lua-l archive

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

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?

- --
┌── ─── ───────────────────
│ "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
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla -