help-octave
[Top][All Lists]
Advanced

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

Re: Octave looping slowing down


From: Eric Ortega
Subject: Re: Octave looping slowing down
Date: Thu, 6 May 1999 15:58:16 -0400 (EDT)


On Thu, 6 May 1999 address@hidden wrote:

> I'm running a double loop:
> 
>   for i=1:3000,  for j=1:150, <stuff>; endfor, endfor
> 
> where <stuff> includes a call to a fairly straightforward function.
> 
> I'm tracking progress by showing the current value of i to screen.
> 
> When this loop started up, each step on i was taking about 1 sec.
> 
> Now, with i about 350 (therefore a long way to go) it is taking about
> 30 sec for each step on i, and seems to be getting even slower.
> 
> There's nothing to make the calculation more complex as the stages
> proceed, so I'm wondering why this is happening. It looks as though I may
> have to stop it, and try to find some other way.


This may be insulting but ... is there no way that the number of internal
iterations is controlled by the value of `i'?  

I made this mistake just two days ago with Matlab and it puzzled me for a
little bit.


Else you could be filling up memory.







                                        eo




reply via email to

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