欢迎大家来我的Bolg作客!在这里我们将为您提供及时全面的IT信息……
摘要: 1. If a method can be static, declare it static. Speed improvement is by a factor of 4. 如果一个方法可静态化,就对它做静态声明。速率可提升至4倍。 2. echo is faster than print. echo 比 print 快。 3. Use echo’s multiple parameters instead of string concatenation. 使用echo的多重参数(译注:指用逗号而不是句点)代替字符串连接。 4. Set the maxvalue for your for-loops before and not in the loop. 在执行for循环之前确定最大循环数,不要每循环一次都计算最大值。 阅读全文
posted @ 2009-08-30 09:49 Cyrus Dai 阅读(425) 评论(1) 推荐(0) 编辑
Copyright ? 戴超 2008-10-30---9595-95-95