Re:Greplin (YC W10) open sources 10-15x faster protocol buff...
by sigil on Thursday January 27, 2011 @01:54PM
(#2148986)
Yup, simplejson is much faster than the standard json.
JSON
3.56521892548
SimpleJSON
0.727998971939
Protocol Buffer (fast)
0.38397192955
Protocol Buffer (standard)
4.86640501022
Protocol Buffer (lwpb)
0.323328971863
cPickle
0.811990976334
Re:Greplin (YC W10) open sources 10-15x faster protocol buff...
by indigoviolet on Friday January 28, 2011 @04:18AM
(#2151302)
I think you'll find py-yajl to be faster than any of the other Python JSON modules: https://github.com/rtyler/py-yajl
The times should be similar to lwpb then.
Edit2: Oh, and for JSON you should use http://pypi.python.org/pypi/simplejson