Why is DataContractSerializer faster than xmlSerializer?

Efficiency, why and how is a datacontract serializer better than xmlserializer?

+3
source share
1 answer

C: link as well as link2

about 10% faster than XmlSerializer for serializing data, since you don't have full control over how it is serialized, there is a lot that can be done to optimize the serialization / deserialization process.

The main differences that I noticed:

  • The output is not formatted
  • , , , .
  • , , , .
+2

Source: https://habr.com/ru/post/1771696/


All Articles