Re: import data.py using massive amounts of memory

2007-06-27 Thread GHUM
> Note that once it has made the .pyc file the subsequent runs take even > less memory than the cpickle import. Could that be the compiler compiling? Without knowing to much details about that process, but from 2.4 to 2.5 the compiler was totally exchanged, to AST. That would explain the drop f

import data.py using massive amounts of memory

2007-06-27 Thread Nick Craig-Wood
I've been dumping a database in a python code format (for use with Python on S60 mobile phone actually) and I've noticed that it uses absolutely tons of memory as compared to how much the data structure actually needs once it is loaded in memory. The programs below create a file (z.py) with a data