开发者

MarshalByRefObject vs Marshal by value in performence c#

开发者_C百科

I have big data structure that I pass between two application domains. What way of transporting do you propose MarshalByRefObject vs Marshal by value?

Thank you!


The difference between the two is that Marshal by value copies the entire object across application domain boundaries; with MarshalByRefObject, you are effectively sharing the object between the domains as a reference (see the specifics on MSDN).

Therefore, if objects are large, and performance is an issue, MarshalByRefObject will probably be the best way to go.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜