教你50招提升ASP.NET性能(十一):避免在调试模式下运行网站

(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,等等,很受欢迎,但是当你权衡它们的实际的影响时候,与框架级别的优化相比往往是很苍白的。

转载于:https://www.cnblogs.com/JavCof/p/3195731.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值