I'm pretty sure its equivalent. The performance problems are when you use collections. vecs.length is a direct memory access I believe.