This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author pitrou
Recipients amaury.forgeotdarc, daniel.urban, docs@python, dsvensson, loewis, neologix, pitrou, vstinner
Date 2011-08-18.15:07:39
SpamBayes Score 1.0932465e-06
Marked as misclassified No
Message-id <1313679930.3602.11.camel@localhost.localdomain>
In-reply-to <1313678555.84.0.166217975022.issue12775@psf.upfronthosting.co.za>
Content
> 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.
History
Date User Action Args
2011-08-18 15:07:40pitrousetrecipients: + pitrou, loewis, amaury.forgeotdarc, vstinner, dsvensson, daniel.urban, neologix, docs@python
2011-08-18 15:07:39pitroulinkissue12775 messages
2011-08-18 15:07:39pitroucreate