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.14:29:22
SpamBayes Score 9.311905e-07
Marked as misclassified No
Message-id <1313677763.6.0.701906187158.issue12775@psf.upfronthosting.co.za>
In-reply-to
Content
As Charles-François said: it would be nice to know which Python version you are using. Also, if you could test with 2.7 or 3.2 and the standard json module (or the latest simplejson if you prefer).

Also, while Python's performance is not always excellent, it is quite rare for it to be GC-limited, so the advice you are suggesting we give would be misleading for most use cases.

Note that instead of disabling the GC, you can tune its parameters by calling set_threshold. For example:

  u, v, w = gc.get_threshold()
  gc.set_threshold(u, v * 10, w * 50)

(this will make full collections occur 500 times less often)

Or you could disable the GC only when decoding JSON data and reenable it afterwards.
History
Date User Action Args
2011-08-18 14:29:23pitrousetrecipients: + pitrou, loewis, amaury.forgeotdarc, vstinner, dsvensson, daniel.urban, neologix, docs@python
2011-08-18 14:29:23pitrousetmessageid: <1313677763.6.0.701906187158.issue12775@psf.upfronthosting.co.za>
2011-08-18 14:29:23pitroulinkissue12775 messages
2011-08-18 14:29:22pitroucreate