pickle performance on larger objects

Paul Rubin phr-n2002b at NOSPAMnightsong.com
Wed Jul 17 18:43:35 EDT 2002


Sam Penrose <spenrose at intersight.com> writes:
> On a recent project we decided to use pickle for some quick-and-dirty
> object persistence. The object in question is a list of 3,000
> dictionaries
> whose keys and values are short (< 100 character) strings--about 1.5
> megs worth of character data in total. Loading this object from a pickle
> using cPickle took so long we assumed something was broken.

What happens (besides losing cross-version portability) if you use
marshal instead of pickle?



More information about the Python-list mailing list