G
Guest
I've noticed that
System.Runtime.Serialization.Formatters.Binary.BinaryFormatter can take a
very long time to Serialize and Deserialize a large array of classes that
implement ISerializable. In my test sample the array that I'm serializing
contains 100,000 elements (which is similar to the array size in my real
app.) and the test class contains 10 Color properties that are serialized.
On my system this array takes ~55 seconds to serialize and deserialize while
building the array only takes ~0.2 seconds.
Is there any way to improve the serialization performance in this situation?
Of course in my real app the classes being serialized would contain a
variety of serializable objects rather than just colors.
Thanks,
Lance
System.Runtime.Serialization.Formatters.Binary.BinaryFormatter can take a
very long time to Serialize and Deserialize a large array of classes that
implement ISerializable. In my test sample the array that I'm serializing
contains 100,000 elements (which is similar to the array size in my real
app.) and the test class contains 10 Color properties that are serialized.
On my system this array takes ~55 seconds to serialize and deserialize while
building the array only takes ~0.2 seconds.
Is there any way to improve the serialization performance in this situation?
Of course in my real app the classes being serialized would contain a
variety of serializable objects rather than just colors.
Thanks,
Lance