If I have a nested dictionary, then the size of the cPickle'd file is much smaller than the memory used by the python process when I load it into memory. (I am referring to the Memory column in Windows 7 task manager.)
For example, one file of 28MB seems to turn into 202MB of memory. Another file of 155MB takes 1.50GB in memory.
Any pointers on why this is happening, and how I can reduce this inflation?
These nested dictionary contains only integer keys, and values are either integers or other nested integer dictionaries.