Try use cPickle, it is faster

Published: Wednesday, Dec 26, 2007 Last modified: Monday, Nov 23, 2020

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