01-13-2012 03:00 PM
Provided LV does not fold the structure (since It can cheat and say this is hte same everytime and turn it into a constant) the issue LV does not know how many times a While loop will execute so I it cannot preallocate so ... performance hit.
If you have to build in an array in a while loop preallocated and use replace array subset.
If can't guess at the exact size over-allocate and the use reshape array when you are done (on the final array) to truncate it.
Ben
01-13-2012 09:10 PM
@Ben wrote:
If you have to build in an array in a while loop preallocated and use replace array subset.
If can't guess at the exact size over-allocate and the use reshape array when you are done (on the final array) to truncate it.
Ben
That's quite all right. As I said, I have no need to ever build an array with a While loop. I was just curious. Thanks for your insight.