[Numpy-discussion] tofile speed
Tue Jul 24 03:16:42 CDT 2007
So you are saying that a given tofile() call returns only after 2 seconds !?
Can you measure the getData() call time (just comment the tofile out
for a while- I that doesn't use 100% CPU ..) ? (timeit module is
needed - I think)
Maybe multithreading might help - so that tofile() and GetData() can overlap.
But 2 sec is really slow ....
On 7/24/07, Lars Friedrich <email@example.com> wrote:
> Hello everyone,
> thank you for the replies.
> Sebastian, the chunk size is roughly 4*10^6 samples, with two byte per
> sample, this is about 8MB. I can vary this size, but increasing it only
> helps for much smaller values. For example, when I use a size of 100
> Samples, I am much too slow. It gets better for 1000 Samples, 10000
> Samples and so on. But since I already reached a chunksize in the region
> of megabytes, I have difficulties to increase my buffer size further. I
> also have the feeling that increasing does not help in this size region.
> (correct me if I am wrong...)
> Chuck, I am using a Windows XP system with a new (few months old) Maxtor
> Numpy-discussion mailing list
More information about the Numpy-discussion