comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: temporary() pitfall
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: temporary() pitfall [message #22955] Thu, 21 December 2000 09:26 Go to previous message
Jaco van Gorkom is currently offline  Jaco van Gorkom
Messages: 97
Registered: November 2000
Member
Paul van Delst wrote:
>
> Jaco van Gorkom wrote:
>>
>>> The memory that you save with TEMPORARY() comes at the cost of losing
>>> the original array contents. If you are worried about losing the
>>> result of a long computation because of hitting a memory limit, then I
>>> would SAVE the array to disk first. (I find that programs that use a
>>> lot of TEMPORARY calls are also difficult to debug.)
>>>
>> SAVEing to disk is of course the best option,
>
> Hmm, why not re-design the code to work in a smaller memory footprint? (E.g. using smarter, memory
> efficient algorithms for doing linear algebra based on the type of matrix; sparse, banded, dense,
> etc.) The up front cost will be high (wrt time at least), but at least you'll know the code has a
> better chance of working when your dataset/data flow increases 100-fold.
>

I agree. I hope to get the code geared up before Christmas. I
encountered the memory problems while using IDL interactively, trying to
take full advantage of IDL's near-zero up front cost. Maybe I should
code a little widget to keep track of memory usage all the time, which
starts beeping and flashing when I approach the limit. Anything to make
interactive life easier in a world full of object graphics and other
enhancements.

Jaco
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: MBA Questionnaire
Next Topic: Re: PLOT question

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Fri Oct 10 09:14:22 PDT 2025

Total time taken to generate the page: 1.51940 seconds