Possible Duplicate:
Fastest serializer and deserializer with lowest memory footprint in C#?
I’m using BinaryFormatter class to serialize an structure or a class. (after serialization, I’m going to encrypt the serialized file before saving. (And of course decrypt it before deserialization))
But I heard that some other serialization classes are present in .Net Framework. Like XmlSerializer, JavaScriptSerializer, DataContractSerializer and protobuf-net.
I want to know, which one is best for me?
Less RAM space needed for serialize/deserialize is the most important thing for me. Also speed is important.
See http://code.google.com/p/protobuf-net/wiki/Performance for a comparison of performance.