开发者

Mvc RenderAction performance vs RenderPartial

开发者 https://www.devze.com 2023-02-11 08:44 出处:网络
Hi I was wondering if mvc C#s render action was as efficient as callin开发者_运维技巧g the partial in my review directly, and if not, how inefficient it was.RenderAction will certainly be slower than

Hi I was wondering if mvc C#s render action was as efficient as callin开发者_运维技巧g the partial in my review directly, and if not, how inefficient it was.


RenderAction will certainly be slower than RenderPartial. The difference will depend on how much additional work your child action is performing relative to the parent action. For a very simple child action the difference should be pretty small (few % points slower). Without knowing your particular application it's hard to tell. If you are worried about performance you should do some measurements.

0

精彩评论

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