help-octave
[Top][All Lists]
Advanced

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

Re: speed of octave interpreter


From: Robert A. Macy
Subject: Re: speed of octave interpreter
Date: Sun, 25 Sep 2005 19:20:24 -0700

Brian,

I just reran 
>> tic;nim_minimax;toc
ans = 4.2462

...a lot more than I was getting earlier today at 3.7

when I disabled the "all" timestamp check
the time dropped down to... 
ans = 4.1870

which is quite a small change.  

You should still look at doing *ONLY* matrix math and get
rid of all of your "for - loops"

                       - Robert -

On Sun, 25 Sep 2005 19:58:58 -0400
 Brian Blais <address@hidden> 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
> 
> 
> thanks,
> 
> 
>                       bb
> 
> 
> -- 
> -----------------
> 
>              address@hidden
>              http://web.bryant.edu/~bblais
> 



-------------------------------------------------------------
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
-------------------------------------------------------------



reply via email to

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