[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: speed of octave interpreter
From: |
John W. Eaton |
Subject: |
Re: speed of octave interpreter |
Date: |
Mon, 26 Sep 2005 10:31:55 -0400 |
On 25-Sep-2005, Brian Blais wrote:
| Stefan van der Walt wrote:
| > On Sun, Sep 25, 2005 at 01:35:23PM -0400, Brian Blais wrote:
| >
| >>I am running Octave (2.1.71) on Linux (SuSe 9.1), and have written a
| >>simple recursive minimax example for a class, and it seemed to run very
| >>slowly. So, on a whim, I decided to test it in Scilab 3.0, Matlab 7.0
| >
| >
| > Since you are dabbling with the murky art of recursion, you probably
| > want to set
| >
| > ignore_function_time_stamp = "all"
| >
|
| Holy smokes! What a difference!
|
| >> ignore_function_time_stamp = "system";
| >> tic; nim_minimax(15); toc
| ans = 56.552
| >> ignore_function_time_stamp = "all";
| >> tic; nim_minimax(15); toc
| ans = 1.4262
I can reproduce the problem with 2.1.69, but not with my current
sources. I'll reply to Paul Kienzle's post on the maintainers list
with some more observations.
In any case, Octave's interpreter is known to be slow for looping and
even slower for recursion.
But, have mercy. The original goal was not to write a blazingly fast
interpreter. The goal was to write something that would be reliable,
relatively easy to maintain and extend, and that would be useful in
a finite amount of deveopment time. Oh, and (originally) written by
one person who was not a compiler expert.
jwe
--
The amazing thing about a dancing bear is not how well it dances, but
that it dances at all...
-------------------------------------------------------------
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
-------------------------------------------------------------
- speed of octave interpreter, Brian Blais, 2005/09/25
- Re: speed of octave interpreter, Robert A. Macy, 2005/09/25
- Re: speed of octave interpreter, Stefan van der Walt, 2005/09/25
- Re: speed of octave interpreter, Brian Blais, 2005/09/25
- Re: speed of octave interpreter, Robert A. Macy, 2005/09/25
- Re: speed of octave interpreter,
John W. Eaton <=
- Re: speed of octave interpreter, Mike Miller, 2005/09/26
- Re: speed of octave interpreter, Robert A. Macy, 2005/09/26
- Re: speed of octave interpreter, Mike Miller, 2005/09/26
- Message not available
- Message not available
- Re: speed of octave interpreter, David Bateman, 2005/09/27
- Re: speed of octave interpreter, Paul Thomas, 2005/09/27
- Re: speed of octave interpreter, changed to vecorization, Henry F. Mollet, 2005/09/27
- Message not available
- Re: speed of octave interpreter, Mike Miller, 2005/09/27
- Re: speed of octave interpreter, David Bateman, 2005/09/28
- Re: speed of octave interpreter, Brendan Drew, 2005/09/28
- Re: speed of octave interpreter, David Bateman, 2005/09/29