Memory Error

Sibtey Mehdi sibteym at infotechsw.com
Wed Aug 27 03:30:36 EDT 2008


I am using the cPickle module to serialization and de-serialization of heavy
python object (80 MB). When I try to save the object it gives the memory
Error. Any one can help me out of this problem. 

 

I am pickling the object as:

 

    def savePklFile(pickleFile, data):  

        pickledFile = open(pickleFile, 'wb')

        cPickle.dump(data, pickledFile, -1)

        pickledFile.close()        

 

my system has 2 GB of RAM.

 

Thanks,

Sibtey

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20080827/ac1d122c/attachment.html>


More information about the Python-list mailing list