[issue19187] Use a set for interned strings

Alexander Belopolsky report at bugs.python.org
Wed Oct 9 21:35:37 CEST 2013


Alexander Belopolsky added the comment:

> In embedded systems, every byte of memory counts 

It is not just embedded systems.  The range 192 KB to 1.5 MB is where typical L2 cache sizes are these days.  I would expect that the intern dictionary is accessed very often and much more often than the actual strings.  In theory, if it fits in L2 cache, the performance will be much higher than if it is even slightly over.

This said, when I was looking at this 3-4 years ago, I did not see measurable improvements in my programs.

----------

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


More information about the Python-bugs-list mailing list