过滤器是否会降低MVC程序的性能是或否?如果是,如何克服? [英] Filters reduce performance of the programme in MVC yes or no? If yes, how to overcome?
本文介绍了过滤器是否会降低MVC程序的性能是或否?如果是,如何克服?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如果我们在MVC中使用过滤器作为动作方法,它是否会降低程序的性能。
如果是,如何克服它?
我尝试过:
If we use filters for action methods in MVC, Will it reduce the performance of the programme.
if yes, How to overcome it?
What I have tried:
[CustomFilter]
public Actionresult Sample()
{
return view();
}
推荐答案
您好,
请通过以下链接,用于使用自定义过滤器时的性能跟踪。
在ASP.NET MVC应用程序中构建性能指标 [ ^ ]
性能提示:测量asp.net MVC动作过滤器的性能 [ ^ ]
谢谢
Hello,
Please go through the below links, for the performance track while using custom filters.
Building Performance Metrics into ASP.NET MVC Applications[^]
Performance Tip : Measure performance of asp.net MVC Action Filters[^]
Thanks
这篇关于过滤器是否会降低MVC程序的性能是或否?如果是,如何克服?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文