ASP.NET MVC Performance

后端 未结 14 1185
花落未央
花落未央 2020-11-29 17:10

I found some wild remarks that ASP.NET MVC is 30x faster than ASP.NET WebForms. What real performance difference is there, has this been measured and what are the performanc

14条回答
  •  旧巷少年郎
    2020-11-29 17:42

    I think that many of the people who think that WebForms are inherently slow or resource intensive are placing the blame in the wrong place. 9 times out of 10 when I am brought in to optimize a webforms app there are way too many places where the apps authors misunderstand the purpose of the viewstate. I'm not saying that the viewstate is perfect or anything, but it is WAY too easy to abuse it, and it is this abuse that is causing the bloated viewstate field.

    This article was invalueable in helping me understand many of these abuses. https://weblogs.asp.net/infinitiesloop/truly-understanding-viewstate

    In order to make a valid comparison between MVC and WebForms we need to be sure that both apps are using the architectures correctly.

提交回复
热议问题