[issue26314] interned strings are stored in a dict, a set would use less memory

Raymond Hettinger report at bugs.python.org
Sun Mar 13 01:40:20 EST 2016


Raymond Hettinger added the comment:

I agree with Serhiy that this should not be done.   IIRC, there were some discussions on python-dev or python-ideas about using sets for interning and the judgment was the dicts are conceptually the right type and that using sets would be hack.  The other thought was that while a set is generally two-thirds the size of dict, the bulk of the space is for the interned strings themselves.

----------
assignee:  -> rhettinger

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


More information about the Python-bugs-list mailing list