教你50招提升ASP.NET性能(十六):把问题仍给硬件而不是开发人员
2013-07-25 14:30
501 查看
(27)Throw hardware at the problem, not developers
招数27:
把问题仍给硬件而不是开发人员
As developers, we often want to fix problems with code, but don’t be afraid to ‘put the compiler down’ and throw some hardware at the problem.
作为开发人员,我们通常想通过代码解决问题,但不要害怕‘批评编译器’和把问题仍给硬件。
Performance problems caused by disk I/O bottlenecks or paging out of RAM can often be solved by a faster hard drive or more RAM. CPUbound bottlenecks can often be solved by a new machine with a faster processor.
由于磁盘I/O瓶颈或者分页内存泄露引起的性能问题通常可以通过更快的硬盘驱动器或更多的内存解决。CPU密集型瓶颈通常可以通过一个新的装有更快速度处理器的机器解决。
As counterintuitive as it sounds, addressing problems by buying a new machine or upgrading an aging one is often much cheaper than having a developer troubleshoot, diagnose, and correct a deep performance problem. And the rest of your website will get a performance kick to boot!
这听起来有违直觉,诊断并修正一个深层次性能问题,通过购买新机器解决问题或者升级老化的部件通常比让开发人员解决问题成本低的多。并且你的其他网站会得到一个性能提升。
招数27:
把问题仍给硬件而不是开发人员
As developers, we often want to fix problems with code, but don’t be afraid to ‘put the compiler down’ and throw some hardware at the problem.
作为开发人员,我们通常想通过代码解决问题,但不要害怕‘批评编译器’和把问题仍给硬件。
Performance problems caused by disk I/O bottlenecks or paging out of RAM can often be solved by a faster hard drive or more RAM. CPUbound bottlenecks can often be solved by a new machine with a faster processor.
由于磁盘I/O瓶颈或者分页内存泄露引起的性能问题通常可以通过更快的硬盘驱动器或更多的内存解决。CPU密集型瓶颈通常可以通过一个新的装有更快速度处理器的机器解决。
As counterintuitive as it sounds, addressing problems by buying a new machine or upgrading an aging one is often much cheaper than having a developer troubleshoot, diagnose, and correct a deep performance problem. And the rest of your website will get a performance kick to boot!
这听起来有违直觉,诊断并修正一个深层次性能问题,通过购买新机器解决问题或者升级老化的部件通常比让开发人员解决问题成本低的多。并且你的其他网站会得到一个性能提升。
相关文章推荐
- 教你50招提升ASP.NET性能(二十六):对于开发人员的数据库性能技巧
- 教你50招提升ASP.NET性能(十七):不要认为问题只会从业务层产生
- 教你50招提升ASP.NET性能(十八):在处理网站性能问题前,首先验证问题是否出在客户端
- 教你50招提升ASP.NET性能(十五):解决性能问题时不要低估UI的价值
- 教你50招提升ASP.NET性能(二):移除不用的视图引擎
- 教你50招提升ASP.NET性能(六):为了生动的用户体验,总是在客户端验证
- 教你50招提升ASP.NET性能(二十一):避免使用会话状态
- ASP.NET设计中的性能优化问题,.net开发,
- 教你50招提升ASP.NET性能(二十三):StringBuilder不适用于所有字符串连接的场景;String.Join可能是
- 教你50招提升ASP.NET性能(十三):精选技巧集合
- .NET开发人员必看:提高ASP.NET Web应用性能的24种方法和技巧
- 教你50招提升ASP.NET性能(四):精选的技巧
- Asp.net Web Api开发(第二篇)性能:使用Jil提升Json序列化性能
- 教你50招提升ASP.NET性能(二十):7条便利的ViewState技巧
- 教你50招提升ASP.NET性能(二十二):利用.NET 4.5异步结构
- 教你50招提升ASP.NET性能(十二):在生产环境,仔细考虑你需要记录哪些日志
- 教你50招提升ASP.NET性能(十一):避免在调试模式下运行网站
- 教你50招提升ASP.NET性能(二十):认识你的循环
- 教你50招提升ASP.NET性能(八):检查你使用了什么客户端脚本
- ASP.NET未来:简化开发,HTML5及性能提升-面向未来