Marshalling big objects

Josiah Carlson josiah.carlson at sbcglobal.net
Mon Jul 16 03:47:47 CEST 2007


Gabriel Genellina wrote:
> En Sat, 14 Jul 2007 20:04:21 -0300, Orlando Döhring <orl at gmx.de> escribió:
> 
>> I want to marshal objects:
>>
>> - http://docs.python.org/lib/module-marshal.html
>> where I have problems with a bigger objects, e.g.
> 
> Any specific reason you use this module? As a general purpose 
> serializer, use pickle (or cPickle) instead.

For a really good reason why to use cPickle/pickle for large object 
serialization is because the marshal module uses a very conservative 
memory resize, so tends to be slow for large objects.

  - Josiah




More information about the Python-list mailing list