csvread 3.0.1 exponentially slower than v 3.0.0
John W. Eaton
jwe at bevo.che.wisc.edu
Thu Jul 10 11:28:51 CDT 2008
On 10-Jul-2008, David Bateman wrote:
| No it should only resize if the size of the output matrix changes size
| as there are additional columns added, at least that was the idea..
It starts with rdata (and cdata) empty, then resizes anytime the
current row or column is larger than the size of rdata (or cdata).
I'd recommend starting with something like 100x100 and then only
resizing if those bounds are exceeded, and resizing by something like
another 100 rows or 100 columns (whichever is needed). Then in the
end, resizing once more to the actual max number of rows and columns
found in the file. That should improve performance somewhat, but
perhaps someone can come up with a better solution.
jwe
More information about the Bug-octave
mailing list