assoc() allocates memory... why? [message #5845] |
Sat, 17 February 1996 00:00 |
tarrall
Messages: 1 Registered: February 1996
|
Junior Member |
|
|
This is re. vanilla IDL 4.0.1, not PV-Wave, but I'm posting here as
the comp.lang.idl newsgroup looks dead, at least at our site.
The IDL documentation claims quite clearly that assoc() does not
hold the data from the associated file in memory. However, it still
seems to allocate the memory; under both IRIX and SunOS when I
do something like:
openr,1,"bigfile"
x = assoc(1,fltarr(1000,301,180))
all the memory necessary to hold a 1000x301x180 array of floats
(i.e. 215 MB) is allocated by IDL. This seems very inefficient
at best and perhaps even just plain dumb...
Anyone have any comments on this?
--
-Robert Tarrall.-
Unix System/Network Admin
Laboratory for Computational Dynamics
CU - Boulder
|
|
|