开发者

Mvc RenderAction performance vs RenderPartial

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜