johnwcurry

johnwcurry


  • Name: [not set]
  • Favorite Languages: [not set]
  • Website: [not set]
  • Location: [not set]
  • About Me: [not set]

Recent Comments

  • C# Tutorial - Serialize Objects to a File
    12/03/2011 - 11:16

    I wonder how compact serialization is, and how fast it is. I'm currently moving mixed data (int, float, string) around on a local area network. The sender creates a byte stream using BitConverter, UDP's across the network, then decode at the receiver.

    I could take the data values and incorporate them into a serializable class, then serialize/deserialize. I wonder about size and speed compared to the encoded binary stream...

    Encapsulating into an object would certainly reduce the complexity of encode/decode, but what would be the speed/size cost?

    Any thoughts?

    John