对于测试程序,我们只简单地让键侦听器根据按下的是左还是右shift键按向上或向下的方向循环,如清单5所示。
All it takes is for the firing handle [the rubbery black - and yellow-striped loop] to be pulled up about 2.5cm and you're on your way out.只要拉起弹射操纵杆(那个黑黄条纹橡胶环)2.5厘米,你就会弹出机外。
Code that spends most of its time making library calls is just not going to benefit that much from Pyrex speeding up incidental loop overhead.花费大部分时间在库函数调用上的代码不会像那些简单循环任务一样使用Pyrex可以获得明显的加速。