[issue12778] JSON-serializing a large container takes too much memory
poq
report at bugs.python.org
Fri Aug 19 20:14:18 CEST 2011
poq <poq at gmx.com> added the comment:
> It would just need to call a given callable (fp.write) at regular intervals and that would be enough to C-accelerate dump().
True, but that would just special case dump(), just like dumps() is special-cased now. Ideally JSONEncoder.iterencode() would be accelerated, so you wouldn't need any special cases. Or deprecate iterencode() and replace it with a callback interface...
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue12778>
_______________________________________
More information about the Python-bugs-list
mailing list