Differences in Matlab/Octave processing time

Jordi Gutiérrez Hermoso jordigh at gmail.com
Fri May 30 11:50:19 CDT 2008


On 29/05/2008, HempyElmo <hempyelmo at hotmail.com> wrote:
> With Octave on the same computer, it took ages...
[snip]
> I don't know how many loops it makes.

I think I've spotted your problem.

Octave doesn't have JIT like Matlab. This means that unvectorised code
in Octave suffers much more than it does in Matlab, by orders of
magnitude. The only fixes are (1) implement JIT in Octave, a proposal
that comes up once in a while, and I think right now some people are
actually trying to do that, but overall it seems to be too hard for
too little dividends or (2) write better (more vectorised) code.

I suggest you take approach (2).

- Jordi G. H.


More information about the Help-octave mailing list