[Python-ideas] One obvious way to do interning [Was: Retrieve an arbitrary element from a set without removing it]

Alexander Belopolsky alexander.belopolsky at gmail.com
Wed Oct 28 02:09:40 CET 2009


On Mon, Oct 26, 2009 at 1:29 PM, John Arbash Meinel
<john at arbash-meinel.com> wrote:
..
> Anyway, I've had pretty good results, and some significant memory
> savings at times. (The string interned() dict is often the largest
> single object. Once you get 500k strings in there, it is something like
> 12MB all by itself. I've certainly seen it in the 24MB+ range.)

Please see http://bugs.python.org/issue7224 .

It would be interesting to see if it make a difference to any of those
24MB+ interned string dictionary applications.



More information about the Python-ideas mailing list