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

Home » Public Forums » archive » Re: Modifying an array while conserving memory
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: Modifying an array while conserving memory [message #30956 is a reply to message #30875] Fri, 24 May 2002 09:33 Go to previous messageGo to previous message
Pavel A. Romashkin is currently offline  Pavel A. Romashkin
Messages: 531
Registered: November 2000
Senior Member
I think I have evidence that it does. I have had on several occasions
ran out of ram (on a Mac with 1.5 Gb of RAM), and Temporary did help.
But, again, Temporary only is useful when data is changed, not for
reallocation of any kind or operations on array subsets.
When working with large datasets, efficient use of RAM is a must,
otherwise you simply can't run the program.
I can relate to the original question, and think that if you really run
into RAM limitations, you have to know first what is the size of the
inserted array and allocate that ahead of time. Reallocating large
arrays is, first, very slow, and secondly is almost impossible once you
reach the limit of unfragmented memory page.
I found that once you are in this realm, it makes a big difference when
and how you allocate even small variables because contiguous RAM becomes
more important than the total RAM.
Cheers,
Pavel

Craig Markwardt wrote:
>
> Also, to this day I have strong doubts whether the TEMPORARY()
> operator actually saves memory, *during* the operation. [ Of course
> it saves memory afterwards since the variable's memory is released. ]
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: library help -- multiple procedures in one file
Next Topic: Modifying an array while conserving memory

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

Current Time: Sat Nov 29 20:41:12 PST 2025

Total time taken to generate the page: 0.16275 seconds