I've done some quick benchmarking on 4 methods for decimating a 1-D array - here's the timing results:
and the block diagram:
Essentially the 4 techniques are
0) index and build array
1) reshape and reslice array
2) index and rebuild into current array, then truncate
3) explicitly decimate using built-in function
The benchmarking code built a 40M element array, and ran each method with decimations from 1 to 10 multiple times taking the median time as the result. Plus debugging was turned off!
Here's the code (LV 8.2):
Download File:post-3889-1209438013.vi
Apart from the built-in function, the index methods are fastest, with a slight advantage to re-using the same array.
Sorry Jim, I haven't had a chance to add this to the OpenG wiki, and I'm pretty busy so may not get to it any time soon.
Cheers ~ Greg