慢同步(slow)是相机与闪光灯配合实现的一种高级功能。闪光灯的慢同步是指在清晨、傍晚或有一定灯光照明的晚上,适当降低快门速度,同时使用闪光灯,可以在保证主体曝光正常的同时使背景适当曝光,丰富画面效果。
一个著名的资料来源就曾经引证说一个同步的方法调用比一个非同步的方法调用慢 50 倍。
One well-known source has cited that a synchronized method call is as much as 50 times slower than an unsynchronized method call.
对一个空方法的同步调用可能要比对一个空方法的非同步调用慢20倍,但我们多长时间才调用一次空方法呢?
A synchronized call to an empty method may be 20 times slower than an unsynchronized call to an empty method, but how often do we call empty methods?
即使一个程序只包括一个在单一处理器上运行的单线程,一个同步的方法调用仍要比非同步的方法调用慢。
Even when a program contains only a single thread running on a single processor, a synchronized method call is still slower than an unsynchronized method call.
应用推荐