Use omnijson for best json #9

Open
ned14 opened this Issue Jul 14, 2011 · 0 comments

Projects

None yet

1 participant

@ned14
ned14 commented Jul 14, 2011

Can I suggest that you use http://pypi.python.org/pypi/omnijson to retrieve the best json?

cjson hasn't been maintained in years (plus doesn't compile on Windows), and ujson beats the pants off it in speed anyway. If nothing else, you really ought to swap cjson for ujson throughout your library. Here's some benchmarks for Python 2.7:

G:\Oxyderkeia>python json_speed_test.py
Please wait ...
Starting json...
done: 9.36400008202
Starting ujson...
done: 1.34500002861
Starting cjson...
done: 3.60399985313
Starting pickle...
done: 10.2590000629

Thanks,
Niall

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment