On 9 May 2011 14:42, Louis-Philippe
<default@spiralix.org> wrote:
Under OSX,doesn't seem to compile, I get:
anybody had success with Mac 10.6?
thanks!
L-P2011/5/9 Mark Pulford
<mark@kyne.com.au>
Hi,
I mostly wrote CJSON as part of another project last year when the
JSON options appeared to be a bit more limited. Hence I haven't
specifically tested Lua YAJL.
However, an unfair extrapolation of the JsonModules wiki suggests:
- CJSON should provide 2x decoding, 5x encoding performance.
- Lua YAJL has a streaming interface (CJSON doesn't).
- CJSON has options to handle sparse arrays safely.
- CJSON doesn't have any external dependencies other than Lua.
I'm sure there is more to it than that - I'd recommend testing them
yourself to be sure. JSON performance can vary widely based depending
on the input and the implementation.
Regards,
Mark
It does not link Lua, it simply requires adding "-llua" to the LDFLAGS.
Liam