homepage

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 docs@python, eric.araujo, ezio.melotti, pitrou, poq, rhettinger, terry.reedy
Date 2011年06月05日.11:29:20
SpamBayes Score 1.0728795e-09
Marked as misclassified No
Message-id <1307273357.3540.4.camel@localhost.localdomain>
In-reply-to <1306611729.68.0.107395742186.issue12134@psf.upfronthosting.co.za>
Content
> "In CPython, json.dumps(o), by itself, is faster than json.dump(o,f),
> at the expense of using more space, because it creates the entire
> string at once, instead of incrementally writing each piece of o to f.
> However, f.write(json.dumps(o)) may not be faster."
Uh, talking about "CPython" is not very helpful here and only muddies
the waters IMO.
Something like "typical implementations of dump() will try to write the
result in small chunks and will therefore trade lower memory usage for
higher serialization time. If you have enough memory and care about
performance, consider using dumps() and write the result yourself with a
single write() call".
History
Date User Action Args
2011年06月05日 11:29:21pitrousetrecipients: + pitrou, rhettinger, terry.reedy, ezio.melotti, eric.araujo, docs@python, poq
2011年06月05日 11:29:20pitroulinkissue12134 messages
2011年06月05日 11:29:20pitroucreate

AltStyle によって変換されたページ (->オリジナル) /