[issue17810] Implement PEP 3154 (pickle protocol 4)

Serhiy Storchaka report at bugs.python.org
Sun Apr 21 18:16:10 CEST 2013


Serhiy Storchaka added the comment:

Memoization consumes memory during pickling. For now every memoized object requires memory for:

dict's entity;
an id() integer object;
a 2-element tuple;
a pickle's index (an integer object).

It's about 80 bytes on 32-bit platform (and twice as this on 64-bit). For data which contains a lot of floats it can be cumbersome.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue17810>
_______________________________________


More information about the Python-bugs-list mailing list