SimpleJson is slow .... is there any C Compiled version ?

Richard Levasseur richardlev at gmail.com
Sat Jul 26 09:49:20 CEST 2008


On Jul 25, 5:52 pm, Matt Nordhoff <mnordh... at mattnordhoff.com> wrote:
> Also, simplejson and python-cjson might not be entirely compatible:
> there's one character that one escapes and the other doesn't, or something.
> --

They also have different interface.  simplejson uses load/loads/dump/
dumps, whereas cjson using encode/decode (its pretty simple to
monkeypatch cjson with some lambda's so it has the same interface,
though).

Yeah, its frustrating that there are so many json encoders for
python.  Its a bit disappointing simplejson is going into the stdlib;
i hope they rewrite it in C?

http://blog.hill-street.net/?p=7
Has a good comparison of encoders.



More information about the Python-list mailing list