Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Be sure to use the higher version of Pickle protocol. Except if you have very slow I/O, it shouldn't take more than a second.

Use CPickle too, if you can. (You can find numerous benchmark between Pickle, Cpickle, Json ...on stackoverflow)

cPickle.dumps(obj, protocol=pickle.HIGHEST_PROTOCOL)