Why is binary serialization faster than xml serialization?

前端 未结 5 1412
无人共我
无人共我 2021-02-19 20:46

Why is binary serialization considered faster than xml serialization?

5条回答
  •  春和景丽
    2021-02-19 21:10

    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.

提交回复
热议问题