help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Performance of fread


From: Quentin Spencer
Subject: Re: Performance of fread
Date: Mon, 27 Feb 2006 10:39:01 -0600
User-agent: Mozilla Thunderbird 1.0.7-1.1.fc4 (X11/20050929)

Sascha Berkenkamp wrote:

Hi,

I would like to know some things about the speed of the fread function.
In my scenary I'll get about 1000 pictures of one CCD camera. I have to know the data from one pixel about the 1000 pictures. So in my first step I sort the pictures new. So at the result I'll get all informations about the pixel in one file (in my case the pixels-informations of one column of the CCD array in one file).

The second step is to open all the files and read the pixels in order to do some FFT and filtering. I have to read about 800 files (each as about 578 information of the pixels). In the end I do about 400.000 ffts. But I think that the fread (and the speed of the disk) function is the least link. Is there any chance to make the fread faster, or is it better to do all the task in C?


fread is already written in C, so I don't know how you're going to speed it up by rewriting it. Disk speed could be part of the problem, but you really haven't provided very much information here. If you really want to know what is make this slow, you need to do some measurements using functions like tic and toc. If you can provide some data on how much time each step is taking, then we can possibly be more helpful.

-Quentin



-------------------------------------------------------------
Octave is freely available under the terms of the GNU GPL.

Octave's home on the web:  http://www.octave.org
How to fund new projects:  http://www.octave.org/funding.html
Subscription information:  http://www.octave.org/archive.html
-------------------------------------------------------------



reply via email to

[Prev in Thread] Current Thread [Next in Thread]