[docs] [issue12134] json.dump much slower than dumps

Antoine Pitrou report at bugs.python.org
Sat May 21 15:57:27 CEST 2011

Antoine Pitrou <pitrou at free.fr> added the comment:

This is indeed the case. And the solution is obvious: call dumps() and then write() the result yourself. If dump() used _one_shot=True, it would defeat the purpose of minimizing memory consumption by not buffering the whole result.

assignee:  -> docs at python
components: +Documentation
nosy: +docs at python, pitrou, rhettinger

Python tracker <report at bugs.python.org>

More information about the docs mailing list