教你50招提升ASP.NET性能(十七):不要认为问题只会从业务层产生
2013-07-26 14:29
330 查看
(28)Don’t assume that problems can only arise from business logic
招数28:
不要认为问题只会从业务层产生
When beginning to diagnose performance problems, we often assume the problem is in our business logic. Don’t forget that the areas of our code that provide infrastructure can cause problems as well.
当开始诊断性能问题时,我们一般认为问题出在我们的业务逻辑上。不要忘记为我们提供基础代码的区域同样可能导致问题。
Areas such as HttpHandlers, HtmlHelpers, mapping, logging, or IoC frameworks are increasingly at the root of performance problems. While business logic still causes its share of problems, infrastructure code is quickly gaining in the performance problem race.
比如HttpHandlers, HtmlHelpers, mapping, looging, 或IoC框架区域正在越来越多的成为根本的性能问题。而业务逻辑会导致它和基础代码都存在问题,基础代码性能问题会更突出。
招数28:
不要认为问题只会从业务层产生
When beginning to diagnose performance problems, we often assume the problem is in our business logic. Don’t forget that the areas of our code that provide infrastructure can cause problems as well.
当开始诊断性能问题时,我们一般认为问题出在我们的业务逻辑上。不要忘记为我们提供基础代码的区域同样可能导致问题。
Areas such as HttpHandlers, HtmlHelpers, mapping, logging, or IoC frameworks are increasingly at the root of performance problems. While business logic still causes its share of problems, infrastructure code is quickly gaining in the performance problem race.
比如HttpHandlers, HtmlHelpers, mapping, looging, 或IoC框架区域正在越来越多的成为根本的性能问题。而业务逻辑会导致它和基础代码都存在问题,基础代码性能问题会更突出。
相关文章推荐
- 教你50招提升ASP.NET性能(十五):解决性能问题时不要低估UI的价值
- 教你50招提升ASP.NET性能(十八):在处理网站性能问题前,首先验证问题是否出在客户端
- 教你50招提升ASP.NET性能(十六):把问题仍给硬件而不是开发人员
- 教你50招提升ASP.NET性能(二十):认识你的循环
- 教你50招提升ASP.NET性能(十九):静态集合
- 教你50招提升ASP.NET性能(十一):避免在调试模式下运行网站
- 教你50招提升ASP.NET性能(一):缓存是最后的手段
- 教你50招提升ASP.NET性能(二十):7条便利的ViewState技巧
- 教你50招提升ASP.NET性能(二):移除不用的视图引擎
- 教你50招提升ASP.NET性能(二十六):对于开发人员的数据库性能技巧
- 教你50招提升ASP.NET性能(二十三):StringBuilder不适用于所有字符串连接的场景;String.Join可能是
- 教你50招提升ASP.NET性能(五):确保分页是在数据层完成的
- 教你50招提升ASP.NET性能(十四):使用startMode属性来减少ASP.NET站点加载时间
- 教你50招提升ASP.NET性能(八):检查你使用了什么客户端脚本
- 教你50招提升ASP.NET性能(十):减少通过网络发送的数据
- 教你50招提升ASP.NET性能(二十二):利用.NET 4.5异步结构
- 教你50招提升ASP.NET性能(十三):精选技巧集合
- 教你50招提升ASP.NET性能(四):精选的技巧
- 教你50招提升ASP.NET性能(七):总是在服务器端执行验证
- 教你50招提升ASP.NET性能(九):显式的使用using语句减少内存泄露