(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框架区域正在越来越多的成为根本的性能问题。而业务逻辑会导致它和基础代码都存在问题,基础代码性能问题会更突出。