For-each loop: When iterating over an array, the compiler generates an induction variable and the standard array iteration idiom.
for - each循环:当迭代数组时,编译器生成归纳变量和标准的数组迭代语法。
It then iterates over this table list, dynamically generating a new elements array on each iteration.
然后迭代此表列表,动态地针对每个迭代生成一个新的elements数组。
zero() is slowest, because the JIT can't yet optimize away the cost of getting the array length once for every iteration through the loop.
zero() 是当中最慢的,因为对于这个遍历中的历次迭代,JIT并不能优化获取数组长度的开销。
应用推荐