[Numpy-discussion] fast constructor for arrays from byte data (unpickling?)

Robert Kern kern at caltech.edu
Tue Aug 7 16:17:23 EDT 2001

On Tue, Aug 07, 2001 at 01:26:57PM -0700, Chris Barker wrote:


> Note that you end up creating a Python string of the data first, and
> then a NumPy array from that. This doesn't really cost that much, but it
> can be an issue with huge data sets. I wish there was a fromfile()
> function. I may get around to writing it one day.

With Python 2.0 or greater, one can use mmap'ed files as arguments to

> -Chris

Robert Kern
kern at caltech.edu

"In the fields of hell where the grass grows high
 Are the graves of dreams allowed to die."
  -- Richard Harter

More information about the NumPy-Discussion mailing list