[issue31993] pickle.dump allocates unnecessary temporary bytes / str
Olivier Grisel
report at bugs.python.org
Sun Nov 12 10:48:14 EST 2017
Olivier Grisel <olivier.grisel at ensta.org> added the comment:
> While we are here, wouldn't be worth to flush the buffer in the C implementation to the disk always after committing a frame? This will save a memory when dump a lot of small objects.
I think it's a good idea. The C pickler would behave more like the Python pickler. I think framing was intended this way initially. Antoine what do you think?
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue31993>
_______________________________________
More information about the Python-bugs-list
mailing list