mirror of
https://github.com/ultrajson/ultrajson.git
synced 2024-11-23 20:53:30 +01:00
af1b05d74e
Before: $ python3.4 -m timeit -n 10000 -s 'import ujson; x = ["a"*10]*100' 'ujson.dumps(x)' 10000 loops, best of 3: 15.8 usec per loop After: $ python -m timeit -n 10000 -s 'import ujson; x = ["a"*10]*100' 'ujson.dumps(x)' 10000 loops, best of 3: 7.14 usec per loop Other unicode objects creates utf-8 cache in PyUnicode_AsUTF8AndSize(). It consume extra memory. |
||
---|---|---|
.. | ||
JSONtoObj.c | ||
objToJSON.c | ||
py_defines.h | ||
ujson.c | ||
version.h |