开发者

Is there any big perfomance difference between RenderPartial and Partial? [closed]

开发者 https://www.devze.com 2023-01-15 07:34 出处:网络
开发者_Go百科 As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references,or expertise, but this question will likely soli
开发者_Go百科 As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance. Closed 11 years ago.

Also RenderAction and Action. RenderXXX akaik write directly to response stream and XXX use additional string buffer. I don't really want doing benchmark my myself, so maybe someone already do it.


George Stocker is correct but I wanted to add that I'm pretty sure RenderPartial and Partial follow the same code paths. Same for RenderAction and Action. RenderPartial will always be faster than RenderAction because your not simulating a new request.


Until it becomes a bottleneck in your application, I wouldn't worry about it. Spend time on things that matter: like building an application people want to use.

0

精彩评论

暂无评论...
验证码 换一张
取 消