title: Comparison of serializing methods
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/626766/fastest-serializer-and-deserializer-with-lowest-memory-footprint-in-c">Fastest serializer and deserializer with lowest memory footprint in C#?</a>  </p>
  </blockquote>
  
  
  
  <p>I'm using <code>BinaryFormatter</code> 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))</p>
  
  <p>But I heard that some other serialization classes are present in .Net Framework. Like  XmlSerializer, JavaScriptSerializer, DataContractSerializer and protobuf-net.</p>
  
  <p>I want to know, which one is best for me?</p>
  
  <p>Less RAM space needed for serialize/deserialize is the most important thing for me. Also speed is important.</p>