3 ms·
Try builtin json instead of simplejson for pypy (it's API-equivalent)
by fijal 11y ago
Try builtin json instead of simplejson for pypy (it's API-equivalent)
- dorfsmay 11y agoOn big jobs (millions of json input/output) I have found ujson significantly faster than json + pypy.
- fijal 11y agoyop, as I said, ujson is probably your best bet if all you do is parse json.
- sontek 11y agoIf you are on python3 python-rapidjson is faster and safer than uJSON: https://github.com/kenrobbins/python-rapidjson https://github.com/kenrobbins/python-rapidjson >>> data2 = 1.23456789e-13 >>> rapidjson.loads(rapidjson.dumps(data2)) 1.23456789e-13 >>> ujson.loads(ujson.dumps(data2)) 0.0