Hi list,
I have an application that do intense use of JSON (a CouchDB view
server and client library). I started with JSON4Lua, which is pure Lua
but was way too slow for big structures. I switched to luajson, which
is based on lpeg, and achieved to do in milliseconds what JSON4Lua
sometimes took minutes to do.
Now in my view server, for simple views and relatively big datasets
(so that the code is mostly dominated by JSON conversions), Lua is
approximately 10 to 20% faster than JavaScript (SpiderMonkey 1.7.0).
So my question is, can I expect a significative performance
improvement by using a JSON parsing library written in pure C (that
would use the Lua C API for data structures construction) as opposed
to luajson lpeg parser that does the construction from Lua code ?
Regards,
Doub.