Antoine Pitrou <pit...@free.fr> added the comment: > The bug note contains a test script. You just have to generate a huge > JSON-blob, or allocate 1 GB or so and pickle it down to file and > replace the cjson.decode to pickle.loads, pickle is about 20 times > faster without GC.
You can't say that any "huge JSON blob" will exhibit the same performance characteristics as yours. I just tested json.loads() with a rather trivial 300MB JSON string, and it took a couple of seconds (on 2.7). Does it reproduce your workload? I don't know. > disabling/enabling the GC is not safe in a multithreaded environment? You are right that disabling/enabling the GC is a global setting. But that still leaves the option of tuning the parameters. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue12775> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com