[Numpy-discussion] Memory efficient alternative for np.loadtxt and np.genfromtxt
njs at pobox.com
Tue Oct 28 16:24:28 EDT 2014
On 28 Oct 2014 20:10, "Chris Barker" <chris.barker at noaa.gov> wrote:
> Memory efficiency -- somethign like my growable array is not all that
hard to implement and pretty darn quick -- you just do the usual trick_
over allocate a bit of memory, and when it gets full re-allocate a larger
Can't you just do this with regular numpy using .resize()? What does your
special class add? (Just curious.)
> From a quick loo, it seems that the Panda's code is pretty nice -- maybe
the 2X memory footprint should be ignored.
It's fun to sit around and brainstorm clever implementation strategies, but
Wes already went ahead and implemented all the tricky bits, and optimized
them too. No point in reinventing the wheel.
(Plus as I pointed out upthread, it's entirely likely that this "2x
overhead" is based on a misunderstanding/oversimplification of how virtual
memory works, and the actual practical overhead is much lower.)
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the NumPy-Discussion