正在加载图片...
The Golden Rules of optimization Premature Optimization is Evil a Donald Knuth, premature optimization is the root of al∥evi Optimization can introduce new, subtle bugs Optimization usually makes code harder to understand and maintain Get your code right first, then, if really needed, optimize计t Document optimizations carefully a Keep the non-optimized version handy, or even as a comment in your code Fa|2011 Advanced Compiler techniques4 Fall 2011 “Advanced Compiler Techniques” The Golden Rules of Optimization Premature Optimization is Evil ◼ Donald Knuth, premature optimization is the root of all evil ◼ Optimization can introduce new, subtle bugs ◼ Optimization usually makes code harder to understand and maintain ◼ Get your code right first, then, if really needed, optimize it ◼ Document optimizations carefully ◼ Keep the non-optimized version handy, or even as a comment in your code
<<向上翻页向下翻页>>
©2008-现在 cucdc.com 高等教育资讯网 版权所有