Is there any way to minimize str()/unicode() objects memory usage [Python 2.6.4] ?
Michael Torrie
torriem at gmail.com
Sat Aug 7 01:56:04 EDT 2010
On 08/06/2010 07:56 PM, dmtr wrote:
> Ultimately a dict that can store ~20,000,000 entries: (u'short
> string' : (int, int, int, int, int, int, int)).
I think you really need a real database engine. With the proper
indexes, MySQL could be very fast storing and retrieving this
information for you. And it will use your RAM to cache as it sees fit.
Don't try to reinvent the wheel here.
More information about the Python-list
mailing list