如果希望启用这个日志记录功能,那么 清单 1 中的 LOGGING 常量应当为 TRUE,但是如果是在手机上运行的话,应当将其设为 FALSE,因为性能损失是非常明显的。
The LOGGING constant in Listing 1 should be TRUE if you want this logging to work, but leave it FALSE when it is running on the cell phone, as the performance hit can be significant.
由于系统是连续运行的,也就没有等待的时间和启动及停下时的动力损失。
Because the system ran constantly, there would be no waiting and little momentum lost on stops and starts.
表格中的数据是同步版本的运行时间相对于非同步版本的运行时间的比率;它显示了同步的性能损失。
The data in the table is the ratio of run time of the synchronized version to the unsynchronized version; it shows the performance penalty of synchronization.
应用推荐