If you define the array space outside of the loop, using the
<b>Initialize Array</b> function, wired for the desired number of
elements, then use the <b>Replace Array Subset</b> function to replace
each element as you index through the array, it should initialize a
lot faster, especially for a large array.  As I understand it, using
the loop to build the array (effectively what you're doing) requires
copying the old array to a new array with one additional element,
every time through the loop.  The replacement mechanism just updates a
value in an allocation that's already been created and initialized.
So you avoid large memory allocation tasks and large amounts of
copying of data from the old array to the new one.

Hope that helps.  Sorry this a very 'late' reply - other work has kept
me away too long!

Bob

Reply via email to