简体   繁体   English

C#MVC Razor或Master / Content性能

[英]C# MVC Razor or Master/Content performance

I'm starting a new project with MVC and I've never used the Razor engine. 我正在用MVC开始一个新项目,我从未使用过Razor引擎。 Will there be any performance gains or hits as compared to using the standard Content/Master pages? 与使用标准内容/母版页相比,是否会有任何性能提升或点击? I know that Razor looks better and seems easier to program for, but what is the cost? 我知道Razor看起来更好,似乎更容易编程,但成本是多少?

Thanks 谢谢

Razor, according to these tests, is slightly slower: 根据这些测试,Razor稍微慢一点:

ASP.NET MVC 3 Razor performance ASP.NET MVC 3 Razor性能

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM