[Numpy-discussion] loadtxt slow

Robert Kern robert.kern@gmail....
Sun Mar 1 15:17:44 CST 2009


On Sun, Mar 1, 2009 at 15:12, Gideon Simpson <simpson@math.toronto.edu> wrote:
> So I have some data sets of about 160000 floating point numbers stored
> in text files.  I find that loadtxt is rather slow.  Is this to be
> expected?

Probably. You don't say exactly what you mean by "slow", so it's
difficult to tell. But it is unlikely that you are running into some
slow corner case or something that no one else has seen.

> Would it be faster if it were loading binary data?

Substantially.

-- 
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