[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[octave] file i/o performance
From: |
Mark Robinson |
Subject: |
[octave] file i/o performance |
Date: |
Fri, 20 May 2005 14:35:25 +1000 |
Hi. Newbie question.
I'm a new user of octave (using 2.1.62 on Mac OS X). I'm trying to
port over some MATLAB code and am finding reading a text file
considerably slower in octave than in MATLAB 7.0. Like, about 5 times
slower, which seems to me like it is not an artifact of octave ... it's
probably the code.
Basically, the program makes a bunch of 'fgetl' calls and, depending on
the content of the line (where it uses 'strrep' or 'strtok'), sticks it
in one of two cell arrays. Are any of these known to be slower in
octave, or is there something to do with cell arrays that I should know
about?
It's actually a FASTA-formatted file for protein/DNA sequences.
Thanks for any help.
Cheers,
Mark
-------------------------------------------------------------
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
-------------------------------------------------------------