介绍几篇与 CS 有关的文章…
对效能(performance)这话题有兴趣的话可以看看这篇文章
http://stackoverflow.com/questions/11227809/why-is-processing-a-sorted-array-faster-than-an-unsorted-array
短网址: http://goo.gl/u4Ebl
Wikipedia 上也有很浅显的介绍
http://en.wikipedia.org/wiki/Software_performance_testing
http://en.wikipedia.org/wiki/Program_optimization
就 optimization 而言,可以浓缩成 Donald Knuth 的这句话
"We should forget about small efficiencies, say about 97%
of the time: premature optimization is the root of all evil."
有人把这句译为: 未成年就那么优是罪恶的根源
- Donald Knuth
易言之,在动手大改前,得先设计好严谨的测量步骤及了解从程式语言到 CPU opcode
整个 technology stack