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.
精彩评论