[Numpy-discussion] Speeding up loadtxt / savetxt

Andreas lists@hilboll...
Fri Apr 23 03:16:39 CDT 2010


Hi there,

I was wondering if there's a way to speedup loadtxt/savetxt for big 
arrays? So far, I'm plainly using something like this::

    file = open("array.txt","w")
    a = np.loadtxt(file)
    file.close()

However, since my files are pretty big (~200M), that's taking a long 
time... Perhaps there's a way to speed things up?

Thanks a lot for your insight,

Andreas.


More information about the NumPy-Discussion mailing list