[issue31993] pickle.dump allocates unnecessary temporary bytes / str

Antoine Pitrou report at bugs.python.org
Thu Nov 9 13:29:54 EST 2017


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

As for the C pickler, currently it dumps the whole pickle into an internal buffer before calling write() at the end.  You may want to make writing more incremental.  See Modules/_pickler.c (especially _Pickler_Write()).

----------
stage: patch review -> needs patch

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue31993>
_______________________________________


More information about the Python-bugs-list mailing list