This patch set adds an optional C extension wrapper for the Python JSON parser. In local tests, it sped up parsing a 100Mb JSON file by over 70x. It also switches to using the built-in Python JSON serializer and fixes a small difference between Python 2 and 3 when parsing numbers.
Hopefully, the build system changes are resolved in this version. Terry Wilson (3): Ensure significand remains an integer in Python3 json parser Add optional C extension wrapper for Python JSON parsing JSON serialization via Python's json lib Makefile.am | 2 +- configure.ac | 2 + m4/openvswitch.m4 | 47 ++++++++++ python/automake.mk | 25 +++++ python/ovs/_json.c | 268 +++++++++++++++++++++++++++++++++++++++++++++++++++++ python/ovs/json.py | 119 +++++------------------- python/setup.py | 51 +++++++++- tests/json.at | 26 ++++-- 8 files changed, 434 insertions(+), 106 deletions(-) create mode 100644 python/ovs/_json.c -- 1.8.3.1 _______________________________________________ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev