但反过来也正确:明智地选择垃圾收集参数实际上会使应用程序运行速度更快。
However, the opposite is also true: a wise choice of garbage collection parameters can actually make an application run more quickly.
我并不认为这些规则能使您的代码运行速度更快,但其中一些确实能帮助您避免bug。
I won't claim that following any of these rules will make your code run faster, and only a few of them will help you avoid bugs.
现在优化的代码比未优化的代码运行速度更快,您可以通过比较每次运行的时间间隔看到这一点。
The optimized code is now running faster than the non-optimized code, which you can see by comparing the interval times of each run.
应用推荐