Re: [Numpy-discussion] fromstring() is slow, no really!

2012-05-17 Thread Chris Barker
Anthony, Thanks for looking into this. A few other notes about fromstring() ( and fromfile() ). Frankly they haven't gotten much love -- they are, as you have seen, less than optimized, and kind of buggy (actually, not really buggy, but not robust in the face of malformed input -- and they give

[Numpy-discussion] fromstring() is slow, no really!

2012-05-13 Thread Anthony Scopatz
Hello All, This week, while doing some optimization, I found that np.fromstring() is significantly slower than many alternatives out there. This function basically does two things: (1) it splits the string and (2) it converts the data to the desired type. There isn't much we can do about the

Re: [Numpy-discussion] fromstring() is slow, no really!

2012-05-13 Thread Anthony Scopatz
And I forgot to attach the relevant code (though it is also in my fork)... On Sun, May 13, 2012 at 6:28 PM, Anthony Scopatz scop...@gmail.com wrote: Hello All, This week, while doing some optimization, I found that np.fromstring() is significantly slower than many alternatives out there.