help-octave
[Top][All Lists]
Advanced

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

Re: execution speed in *oct files


From: John W. Eaton
Subject: Re: execution speed in *oct files
Date: Fri, 4 Jun 1999 12:58:17 -0500 (CDT)

On  4-Jun-1999, Joao Cardoso <address@hidden> wrote:

| John W. Eaton wrote:
|
| > Because the indexing operators invoke some functions to do the
| > indexing calculation.  I'd guess that either the functions are not all
| > inlined, or the compiler is not able to convert the addition and
| > multiplication of the indexing operation to a simple increment (as you
| > have), or both.
| 
| I also found Octave Matrix class very slow, if compared with an
| equivalent *C* program using pointers (of course). Up to ten times
| slower in same cases, usually three to four times slower.
| 
| Are you using gcc or egcs, I presume? Has anybody compiled Octave with
| other compiler? Any hints?

I've tried to focus on correctness rather than speed, so there may
also be some things in the Octave libraries that are written in ways
that make certain optimizations or inlining is not possible.  If so,
and you have ideas about how to fix the source, please submit a patch.

Thanks,

jwe



---------------------------------------------------------------------
Octave is freely available under the terms of the GNU GPL.  To ensure
that development continues, see www.che.wisc.edu/octave/giftform.html
Instructions for unsubscribing: www.che.wisc.edu/octave/archive.html
---------------------------------------------------------------------



reply via email to

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