Is there any way to minimize str()/unicode() objects memory usage [Python 2.6.4] ?

Neil Hodgson nyamatongwe+thunder at gmail.com
Sat Aug 7 04:18:35 CEST 2010


dmtr:

> What I'm really looking for is a dict() that maps short unicode
> strings into tuples with integers. But just having a *compact* list
> container for unicode strings would help a lot (because I could add a
> __dict__ and go from it).

   Add them all into one string or array and use indexes into that string.

   Neil



More information about the Python-list mailing list