最广为人知的限制循环迭代次数的模式称作“达夫设备”。
The most well known approach to limiting loop iterations is a pattern called Duff's Device.
改善循环性能的最好办法是减少每次迭代中的运算量,并减少循环迭代次数。
The best ways to improve loop performance are to decrease the amount of work done per iteration and decrease the number of loop iterations.
如果循环迭代次数少于1 ' 000次,你可能只看到它与普通循环相比只有微不足道的性能提升。
In cases where the loop iterations are less than 1,000, you're likely to see only an insignificant amount of performance improvement over using a regular loop construct.
在默认情况下,任何循环在达到一定的迭代次数(比如10,000次)之后,就应该触发整个方法的编译。
By default, any loop should trigger compilation of the entire method after 10,000 iterations or so.
因为大多数for循环处理的复杂逻辑不允许静态地确定迭代次数,因此您不会经常使用这种格式的括号表示。
Because most for loops deal with complicated logic that does not allow the number of iterations to be statically determined, you will not often employ this form of bracket notation.
我们的while循环图既包含条件,又包含表明迭代的星号,但您会发现,没有迭代的次数。
Our diagram for the while loop contains both a condition and an asterisk, signaling iteration, but as you can see the number of iterations is unavailable.
while循环很少包含迭代次数——除非它是一个伪装的for循环。
A while loop will rarely include the number of iterations — unless it is a for loop in disguise.
新循环代码每次迭代中减少两个操作,随着迭代次数的增长,性能将显著提升。
The new loop code has two fewer operations per iteration, which can lead to increasing performance gains as the number of iterations increases.
减少循环的迭代次数可获得显著的性能提升。
Decreasing the number of iterations throughout the loop can therefore lead to greater performance gains.
仿真结果显示,该方法在迭代次数很小时性能便可接近带有循环前缀的STBC - OFDM系统。
Simulation results show that the performance of this method approaches that of the STBC-OFDM with cyclic prefix even if the number of iteration is very small.
一个策略执行循环中规则重估迭代的最大次数。默认值为65536。
The maximum number of rule reevaluation iterations within one policy execution cycle. The default is 65536.
利用对偶规划求解一个单纯形法循环的例子,由此减少了单纯形法迭代次数,达到简化计算、加快计算速度、节省存储空间的效果。
This paper tries to find the solution of a simplex-method recurrence by means of dual program, which can reduce the repetitions of simplex-method and simplify the calculations as well.
利用对偶规划求解一个单纯形法循环的例子,由此减少了单纯形法迭代次数,达到简化计算、加快计算速度、节省存储空间的效果。
This paper tries to find the solution of a simplex-method recurrence by means of dual program, which can reduce the repetitions of simplex-method and simplify the calculations as well.
应用推荐