cPickle alternative?

Irmen de Jong irmen at -NOSPAM-REMOVETHIS-xs4all.nl
Fri Aug 15 13:23:36 EDT 2003


Drochom wrote:
>>What protocol did you pickle your data with?  The default (protocol 0,
>>ASCII text) is the slowest.  I suggest you upgrade to Python 2.3 and
>>save your data with the new protocol 2 -- it's likely to be fastest.
>>
>>
>>Alex
>>
> 
> Thanks:)
> i'm using default protocol, i'm not sure if i can upgrade so simply, because
> i'm using many modules for Py2.2

Then use protocol 1 instead -- that has been the binary pickle protocol
for a long time, and works perfectly on Python 2.2.x :-)
(and it's much faster than protocol 0 -- the text protocol)

--Irmen





More information about the Python-list mailing list