因为添加和取出数据操作使用相同的互斥锁,所以读取数据的速度会影响写数据的线程访问锁。
Because you're sharing the same mutex for push and pop operations, the data-read speed is somewhat compromised as writer threads access the lock.
他的这款基于现代PC硬件和新刀具轨迹算法的数控系统最终读取程序的速度达到50000程序段/s。
The product was a CNC control based on modern PC hardware coupled with a new approach to toolpath algorithms that produces a read speed of more than 50,000 blocks per second.
本例中使用的图像是 6,000 x 3,000 像素,因此读取 getwidth 和 getheight 子例程是在 for 循环之前完成的,这样可以显著提高速度。
Images used in this example are 6,000 x 3,000 pixels, so reading from the getwidth and getheight subroutines is done before the for loops for a significant speed increase.
应用推荐