From bug-octave-request at bevo dot che dot wisc dot edu Wed Dec 8 00:54:52 1999 Subject: 2.1.19 Slow "source" From: "John W. Eaton" To: etienne at isr dot isr dot ist dot utl dot pt Cc: bug-octave at bevo dot che dot wisc dot edu, etienne@isr.ist.utl.pt Date: Wed, 8 Dec 1999 00:55:05 -0600 (CST) On 6-Dec-1999, etienne grossmann wrote: | | | Hello, | | This is just to tell the developers that there may be something | wrong with the "source" function : | | I have a file "data/work/calib2/centers.m" of the form : | | ====================================================================== | % | % data/work/calib2/centers.m , created by any2m.m on Mon Dec 06 09:39:21 1999 | | imbase = 'data/images/calib_circles/calib2%02i.pgm' ; | | imsz = reshape([ 768 | 576 ] ,1,2 ) ; | | centers = reshape([ 22.3 | 90.47499999999999 | | ... something like 20395 lines, each with a single number on it ... | | 706.5321100917431 | 395.0137614678899 ] ,50,408 ) ; | | ====================================================================== | | This file cannot be loaded in Octave 2.1.19, whereas Matlab loads it | about 2 seconds. Octave takes 30seconds to load smaller (4000 lines) | files of the same kind. Is there a known cause of slowness in the | "source" function? Do you think it is easy to fix? I see the problem, but not the fix. A simple workaround is to put the data in a file and use load to read it instead. jwe ----------------------------------------------------------------------- Octave is freely available under the terms of the GNU GPL. Octave's home on the web: http://www.che.wisc.edu/octave/octave.html How to fund new projects: http://www.che.wisc.edu/octave/funding.html Subscription information: http://www.che.wisc.edu/octave/archive.html -----------------------------------------------------------------------