I am just wondering how much of a performance will you lose by using lots of partial views and html helpers in an asp.net mvc application.
Like I know html helpers are to be light weight but I can’t see them rendering as fast as if you just made straight html.
Don’t get me wrong I love them but just curious on how much they would impact your site. I am guessing not much but some of these html helpers can get complicated and do quite a bit.
Also I like using partial views since many of my parts of my site need basically the same code so might as well try to eliminate the duplicate code so I like putting it in partial views.
How much of a performance impact do partial views have?
I have no evidence to back this up, but I’d assume almost none. Especially for HTML Helpers – its just an extra method call. You could copy and paste the code from the helper into the View and you’d only have accomplished having one less method on the stack.