Try use cPickle, it is faster

Published: Wednesday, Dec 26, 2007 Last modified: Monday, Dec 9, 2024

Upto a 1000 times faster according to docs: http://www.python.org/doc/current/lib/module-cPickle.html

try:
     import cPickle as pickle # Try use cPickle because it is faster

except:
     import pickle