On Tue, May 19, 2015 at 8:25 AM, Geoffrey Spear <[log in to unmask]> wrote:
> This is kind of weird, since the stdlib json module should be using a C
> extension (from _json). ultrajson does claim to be faster than simplejson
> (which is the library that got incorporated into the python 2.6 stdlib as
> "json"), but I wouldn't have expected it to make that much of a difference.
> Out of curiosity, does "import _json" work on your Python? I'm wondering if
> the C extension didn't build for some reason.
I've tested json vs. cjson and ujson on Python 2.7.6 on OS X 10.10.2
and Python 2.7.3 on Debian Jessie. In both cases, the standard json
module was noticeably slower (and "import _json" does work).
On my Debian box I also tried using simplejson directly, and it was
also faster than json.
Infrastructure and Added Services Manager
Equinox Software, Inc. / The Open Source Experts
email: [log in to unmask]
direct: +1 770-709-5581
cell: +1 404-984-4366
Supporting Koha and Evergreen: http://koha-community.org &