[Python-Dev] Status of json (simplejson) in cpython (original) (raw)

Nick Coghlan ncoghlan at gmail.com
Mon Apr 18 05:07:29 CEST 2011


On Mon, Apr 18, 2011 at 10:19 AM, Vinay Sajip <vinay_sajip at yahoo.co.uk> wrote:

It's quite likely that I've failed to turn off the stdlib json speedups (though I attempted to turn them off for both encoding and decoding), which would explain the big disparity in the non-speedup case. Perhaps someone with more familiarity with stdlib json speedup internals could take a look to see what I've missed? I perhaps can't see the forest for the trees.

Consider trying:

import sys sys.modules["_json"] = 0 # Block the C extension import json

in a fresh interpreter.

(This is the same dance test.support.import_fresh_module() uses internally to get unaccelerated modules for testing purposes)

Cheers, Nick.

-- Nick Coghlan   |   ncoghlan at gmail.com   |   Brisbane, Australia



More information about the Python-Dev mailing list