writing large dictionaries to file using cPickle

perfreem at gmail.com perfreem at gmail.com
Wed Jan 28 17:43:23 CET 2009


On Jan 28, 11:32 am, pyt... at bdurham.com wrote:
> Hi,
>
> Change:
>
> pickle.dump(mydict, pfile)
>
> to:
>
> pickle.dump(mydict, pfile, -1 )
>
> I think you will see a big difference in performance and also a much
> smaller file on disk.
>
> BTW: What type of application are you developing that creates so many
> dictionaries? Sounds interesting.
>
> Malcolm

hi!

thank you for your reply. unfortunately i tried this but it doesn't
change the speed. it's still writing the file extremely slowly.  i'm
not sure why?

thank you.



More information about the Python-list mailing list