教你50招提升ASP.NET性能(十一):避免在调试模式下运行网站
2013-07-17 14:07
411 查看
(17)Avoid running sites in debug mode
招数17:
避免在调试模式下运行网站
When it comes to ASP.NET, one of the most common performance blunders I see on a regular basis is accidentally or intentionally running sites in debug mode. Language-level optimizations, such as using StringBuilders, Arrays instead of Lists, Switch instead of If-Then-Else, and so on, are popular, but when you measure their real impact, they usually pale in comparison to optimizations at the framework level.
当涉及到ASP.NET,我经常看见的最常见的性能错误是偶然或故意在调试模式运行网站。语言级的优化,如使用StringBuilders,Arrays替换List,Switch替换If-Then-Else,等等,很受欢迎,但是当你权衡它们的实际的影响时候,与框架级别的优化相比往往是很苍白的。
招数17:
避免在调试模式下运行网站
When it comes to ASP.NET, one of the most common performance blunders I see on a regular basis is accidentally or intentionally running sites in debug mode. Language-level optimizations, such as using StringBuilders, Arrays instead of Lists, Switch instead of If-Then-Else, and so on, are popular, but when you measure their real impact, they usually pale in comparison to optimizations at the framework level.
当涉及到ASP.NET,我经常看见的最常见的性能错误是偶然或故意在调试模式运行网站。语言级的优化,如使用StringBuilders,Arrays替换List,Switch替换If-Then-Else,等等,很受欢迎,但是当你权衡它们的实际的影响时候,与框架级别的优化相比往往是很苍白的。
相关文章推荐
- 教你50招提升ASP.NET性能(二十一):避免使用会话状态
- 教你50招提升ASP.NET性能(十八):在处理网站性能问题前,首先验证问题是否出在客户端
- 教你50招提升ASP.NET性能(三):使用Microsoft的PDBs调试和分析外部的程序集和库
- 教你50招提升ASP.NET性能(十四):使用startMode属性来减少ASP.NET站点加载时间
- 教你50招提升ASP.NET性能(一):缓存是最后的手段
- 通过避免下列 10 个常见 ASP.NET 缺陷使网站平稳运行
- 教你50招提升ASP.NET性能(四):精选的技巧
- 通过避免下列10个常见ASP.NET缺陷使网站平稳运行
- 通过避免下列 10 个常见 ASP.NET 缺陷使网站平稳运行(转载)
- ASP.NET网站性能提升的几个方法
- 使用MiniProfiler调试ASP.NET MVC网站性能
- 教你50招提升ASP.NET性能(二):移除不用的视图引擎
- 通过避免下列 10 个常见 ASP.NET 缺陷使网站平稳运行(转载)
- 教你50招提升ASP.NET性能(二十六):对于开发人员的数据库性能技巧
- 通过避免下列 10 个常见 ASP.NET 缺陷使网站平稳运行
- Asp.Net运行于32/64模式下的性能差异
- 通过避免下列10个常见ASP.NET缺陷使网站平稳运行
- 教你50招提升ASP.NET性能(二十三):StringBuilder不适用于所有字符串连接的场景;String.Join可能是
- 通过避免10 个常见 ASP.NET 缺陷使网站平稳运行
- 通过避免下列 10 个常见 ASP.NET 缺陷使网站平稳运行(转载)