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

Antoine Pitrou report at bugs.python.org
Sun Nov 12 11:48:35 EST 2017


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

Agreed.  We shouldn't issue very small writes, but 64 kB is generally considered a reasonable buffer size for many kinds of I/O.

Besides, it wouldn't be difficult to make the target frame size configurable if a use case arose for it, but I don't think we've ever had such a request.

----------

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


More information about the Python-bugs-list mailing list