|
From: | David Grohmann |
Subject: | Re: Loops resource usage. |
Date: | Thu, 21 Jun 2007 15:58:19 -0500 |
User-agent: | Thunderbird 1.5.0.12 (Windows/20070509) |
Muthiah Annamalai wrote:
Hello there,I'm not too familiar with octave's internals but what you are basically saying is start loop; do stuff; clear memory; loop back versus start loop; do stuff; loop back (implied that the octave reference counter/garbage collector will clear the memory for you in this case) either way memory will be reclaimed when needed, I suspect doing a manual clear would actually slow things down, since you wont be able to amortize the garbage collection cost of more loop iterations. I suppose the real answer is benchmark it and let us know which is faster. -- David Grohmann Senior Student Associate Applied Research Lab : UT Austin : ESL - S206 Office: 512-835-3237 |
[Prev in Thread] | Current Thread | [Next in Thread] |