Sunday, October 14, 2007

Redim performance

Out of curiosity/"challenge" from Julian, I did a little test of ReDim performance.

I'm not that familiar with redimming arrays, so someone let me know if this way of testing is bad.



Percentwise, the difference is humongous, but in seconds, not that big of a difference.

>> Code as text


Anonymous said...

The subtraction of 1 from the array index will take up some of your benchmark time. Why not just run it as a zero-based loop and index and avoid the decrement?