WCF的Xml VS二进制序列化的优点和缺点 [英] WCF Xml vs Binary Serialization Pros and Cons

查看:316
本文介绍了WCF的Xml VS二进制序列化的优点和缺点的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我知道,如果我使用二进制序列化与WCF我失去interopability。

I know that if I use binary serialization with WCF I lose interopability.

如果我愿意忍受这一点,我是wonderinf如果在使用二进制基于XML的效率优势。

If I'm willing to live with this I was wonderinf if there is an efficiency benefit in using binary over Xml.

如果有,我没有上面

推荐答案

是 - 一个潜在的大单。与二进制相当于比XML序列化的数据是很大的。随着二,你失去可读性和互操作性。你也失去了在IIS来承载能力,除非你是在Windows Server 2008或Windows Vista或更高。

Yes - potentially a big one. XML serialized data is big compared with the binary equivalent. With binary, you lose readability and interoperability. You also lose the ability to host in IIS unless you are on Windows Server 2008 or Windows Vista or higher.

不过,如果你是在一个.NET以.NET方案的性能提升outweight在许多情况下这些缺点。

However, the performance gains if you are in a .NET to .NET scenario outweight these drawbacks in many situations.

这篇关于WCF的Xml VS二进制序列化的优点和缺点的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆