That seems very similar to the MDN loop which is one of the slower looping approaches out there according to: http://jsperf.com/loops/70

It is about 76% slower than a cached for loop (although still faster than a jQuery each which is 94% slower than a cached for loop).