StaticTuple... naming, maintenance, ...

Andrew Bennetts andrew.bennetts at canonical.com
Tue Oct 6 00:56:38 BST 2009


John Arbash Meinel wrote:
[...]
> 3) I also implemented a custom 'Interner' class, that works basically
>    like a PySet, but allows lookup and uses half the memory. (1/3rd
>    the memory of a dict.)
> 
>    (In loading all of launchpad, 24MB was used for just the dict holding
>     the interned keys. So I save 16MB just with that.)

Do you keep weak references to interned items?  Or is that not worth the memory
and effort?

-Andrew.




More information about the bazaar mailing list