Re: Read Total lines in an ASCII file [message #33317 is a reply to message #33219] |
Mon, 16 December 2002 08:48   |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
Robert Moss (rmoss4@houston.rr.com) writes:
> What about this then?
>
> array = [ TEMPORARY( array ), new_element ]
>
> Pointless?
I don't know how memory is managed in IDL except
in the most general terms, but I suspect that
done thousands of times, the syntax above will
inevitably lead to memory fragmentation. I think
getting memory in "chunks", as JD and others recommend,
must be more memory efficient in the long run.
Cheers,
David
--
David W. Fanning, Ph.D.
Fanning Software Consulting, Inc.
Phone: 970-221-0438, E-mail: david@dfanning.com
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Toll-Free IDL Book Orders: 1-888-461-0155
|
|
|