[issue16475] Support object instancing and recursion in marshal

Kristján Valur Jónsson report at bugs.python.org
Fri Nov 16 10:48:37 CET 2012


Kristján Valur Jónsson added the comment:

This change is specifically aimed at code objects.
As it is, it is impossible to produce code objects that share common data (e.g. filename strings, common tuples, name strings, etc) that don't unserialize to separate objects.

Also, separately but related (see second patch) the effort spent in interning names when compiling, is lost when code objects are loaded back from disk.

This change is based on work done at CCP to reduce the size of compiled code in memory.  Simple preprocessing of code objects prior to writing them to disk can result in important memory savings.

----------

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


More information about the Python-bugs-list mailing list