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

相关文章:

  • 2022-01-27
  • 2021-11-07
  • 2021-11-03
  • 2021-05-27
  • 2022-02-16
  • 2021-08-11
  • 2021-06-24
  • 2022-01-08
猜你喜欢
  • 2021-06-06
  • 2021-07-22
  • 2021-07-02
  • 2022-01-10
  • 2021-06-28
  • 2021-11-04
  • 2021-12-05
相关资源
相似解决方案