summaryrefslogtreecommitdiff
path: root/include/sparse
diff options
context:
space:
mode:
authorTerry Wilson <twilson@redhat.com>2016-06-08 08:55:14 -0500
committerBen Pfaff <blp@ovn.org>2016-06-08 11:35:17 -0700
commitc63b04d678aab6e63551f4105d6fc03c195d639e (patch)
treeac5bccfb3dcebb9a733f51a0cb3940a814a96bed /include/sparse
parent2c362f17d6f81b7602ac94abb7980fa1e6eb9cee (diff)
downloadopenvswitch-c63b04d678aab6e63551f4105d6fc03c195d639e.tar.gz
Add optional C extension wrapper for Python JSON parsing
The pure Python in-tree JSON parser is *much* slower than the in-tree C JSON parser. A local test parsing a 100Mb JSON file showed the Python version taking 270 seconds. With the C wrapper, it took under 4 seconds. The C extension will be used automatically if it can be built. If the extension fails to build, a warning is displayed and the build is restarted without the extension. The Serializer class is replaced with Python's built-in JSON library since the ability to process chunked data is not needed in that case. The extension should work with both Python 2.7 and Python 3.3+. Signed-off-by: Terry Wilson <twilson@redhat.com> Signed-off-by: Ben Pfaff <blp@ovn.org>
Diffstat (limited to 'include/sparse')
0 files changed, 0 insertions, 0 deletions