[issue31377] remove *_INTERNED opcodes from marshal

Benjamin Peterson report at bugs.python.org
Thu Sep 7 12:54:17 EDT 2017


Benjamin Peterson added the comment:

On Thu, Sep 7, 2017, at 09:46, INADA Naoki wrote:
> 
> INADA Naoki added the comment:
> 
> > We end up interning each reference individually currently.
> 
> But interning interned string is much faster. It only checks flag.
> Interning normal string requires dict lookup.

We could makes sure the version in the internal marshal memo is interned
if appropriate.

----------

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


More information about the Python-bugs-list mailing list