lua-users home
lua-l archive

Re: [ANN] Lua CJSON 1.0

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


Are you specifying for which architecture you would like to link? (It could be that lua on your machine defaults to 64-bit, and somehow cjson to 32-bit or vice versa). Try adding this to gcc (g++, ld, etc.): "-arch i386" or "-arch x86_64" or universal - "-arch i386 -arch x86_64"
On 5/9/2011 6:42 AM, Louis-Philippe wrote:
Under OSX,
doesn't seem to compile, I get:
https://gist.github.com/962533
anybody had success with Mac 10.6?
thanks!
L-P
2011年5月9日 Mark Pulford <mark@kyne.com.au <mailto:mark@kyne.com.au>>
 Hi,
 On Sun, May 08, 2011 at 09:10:55PM -0700, Gu Di wrote:
 > Cool! How does your library compare to lua-yajl?
 > https://github.com/brimworks/lua-yajl
 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

AltStyle によって変換されたページ (->オリジナル) /