DavidU
2008-08-11 13:40:05 UTC
Just wondering how Split 1D array works - does it create two new arrays in a new section of memory or does it just split the existing array in two, reusing the memory in place. (assuming that the original array is not needed elsewhere). If the latter is the case then presumably it is more efficient to use split array than delete from array if I want to remove element(s) from the beginning or end of the array. Is there a speed advantage as well? If I use split array but don't then use one of the output arrays is that memory deallocated or does the array remain in memory?ThanksDave