[issue19187] Use a set for interned strings

Antoine Pitrou report at bugs.python.org
Mon Oct 7 22:23:33 CEST 2013


Antoine Pitrou added the comment:

Note that the resizing heuristic is slightly different for sets and dicts, so a small-to-middle-size dict can sometimesbe smaller than a set of the same len().

However, for large dicts (>= 50000) it seems the corresponding set is most always 66% smaller.

----------

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


More information about the Python-bugs-list mailing list