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

Home » Public Forums » archive » Re: IDL, arrays, and 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: IDL, arrays, and memory [message #33897 is a reply to message #33896] Tue, 04 February 2003 09:31 Go to previous messageGo to previous message
Sean Raffuse is currently offline  Sean Raffuse
Messages: 46
Registered: July 2001
Member
>
> However, whereas in C the difference in terms of speed and algorithm
> design is negligible between using a ragged array and a "wasteful"
> full 3D array, this is not true in IDL. In particular, you can't use
> most of IDL's fast array-based operators with an array of pointers;
> you're stuck accessing each element in a loop, which will be markedly
> slower for a data structure of this size.
>
> You must balance the memory saved against the speed and flexibility
> with which you can operate on the data. This is a common theme in
> IDL, which, in many instances, trades increased memory usage for
> greater speed of execution. Often you can find other ways to organize
> the data which reduces the memory footprint while preserving much of
> the same flexibility had by putting it all in a single array. Or you
> can use, e.g., NaN values to fill the "wasted" array elements and
> avoid having to treat them specially.
>
> Good luck,
>
> JD

Exactly what I needed to hear. Speed of execution is indeed a major issue
here. I'll stick with the big array.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Expert information needed
Next Topic: OPENW and environment variables in IDL 5.5

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

Current Time: Fri Oct 10 08:31:54 PDT 2025

Total time taken to generate the page: 0.00663 seconds