为什么二进制序列比XML序列化的速度快? [英] Why is binary serialization faster than xml serialization?
本文介绍了为什么二进制序列比XML序列化的速度快?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
为什么二进制序列认为比XML序列化的速度快?
Why is binary serialization considered faster than xml serialization?
推荐答案
二进制序列是更有效的,因为直接写入原始数据和XML需要的格式,并解析数据,以产生一个有效的XML结构,另外根据什么样的数据有你的对象XML可能有很多冗余的数据。
Binary serialization is more efficient because write raw data directly and the XML needs format, and parse the data to generate a valid XML structure, additionally depending of what sort of data have your objects the XML may have a lot of redundant data.
这篇关于为什么二进制序列比XML序列化的速度快?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文