|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Serialization PerformanceI'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 Well, I assume you are using .NET remoting with a TCP Channel, the option we
use is DCOM with our own serializator and this is very fast! Cheers, Daniel Carbajal Microsoft MVP Calgary-Canada Show quoteHide quote "ljlevend2" <ljlevend2@nospam.nospam> wrote in message news:0E5F0469-7398-4C2B-AEC0-598F9CA816D6@microsoft.com... > 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 > Hi
Did Daniel's suggestion help you? If you still have any concern, please feel free to post here. Best regards, Peter Huang Microsoft Online Partner Support Get Secure! - www.microsoft.com/security This posting is provided "AS IS" with no warranties, and confers no rights.
arraylist copy
How to detect when items are added to Combobox/Listbox TextChanged Excel Reports in VB.NET Inheriting forms problem How do you force a thread to run on a specific processor? bin folder Opening and Closing a form error : Cannot access a disposed object named "frmImage". Validate User Change/assign a value to dataset |
|||||||||||||||||||||||