[Numpy-discussion] Fastest way to save a dictionary of numpy record arrays

Robert Kern robert.kern at gmail.com
Mon Jun 14 20:08:15 EDT 2010


On Mon, Jun 14, 2010 at 19:00, Vishal Rana <ranavishal at gmail.com> wrote:
> Hi,
> I have dictionary of numpy record arrays, what could be fastest way to
> save/load to/from a disk. I tried numpy.save() but my dictionary is lost and
> cPickle seems to be slow.

numpy.savez() will save a dictionary of arrays out to a .zip file.
Each key/value pair will map to a file in the .zip file with a file
name corresponding to the key.

-- 
Robert Kern

"I have come to believe that the whole world is an enigma, a harmless
enigma that is made terrible by our own mad attempt to interpret it as
though it had an underlying truth."
  -- Umberto Eco



More information about the NumPy-Discussion mailing list