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

Home » Public Forums » archive » Re: null array
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: null array [message #36562 is a reply to message #36478] Fri, 26 September 2003 02:24 Go to previous messageGo to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
JD Smith writes:

> But this is also slow, since you reallocate the array on each iteration
> (which starts to hurt when the array gets large). Far better is to
> pre-allocate the array to roughly the correct size, and grow it as
> necessary. Search this newsgroup for "Is there a standard 'null' array"
> for a thread on this very topic.

Oh, oh. I've started to write this up twice now.
Good thing I'm consistent in my naming convention
or I would be doing every project two or three times.
Does this remind you of anything? :-(

Anyway, you can find a discussion about "null arrays"
here, taken from J.D.'s excellent post on the topic.

http://www.dfanning.com/code_tips/nullarray.html

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
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: How to read the data like this?
Next Topic: Programming ENVI

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

Current Time: Sat Oct 11 09:26:44 PDT 2025

Total time taken to generate the page: 0.48085 seconds