Hmm - do you mean that serializing this [Serializable] class MyImage { public short[,] x= new short[512,512]; }
results in serializing 256K shorts piece by piece? No array optimizations here? Looking at the SerializationInfo I can't find explicit array support either. Well I simply cant't believe - if that's really the case then I'm (badly) impressed. Regards Axel -----Original Message----- From: Shawn Wildermuth [mailto:[EMAIL PROTECTED]] Sent: Samstag, 4. Mai 2002 23:55 To: [EMAIL PROTECTED] Subject: Re: [DOTNET] Slow serialization I am impressed that it is marshaling it in 250ms. You have up to 1/4 million shorts. I might make it faster if I wrote the SerializationInfo prepended with the length of each of these dimensions and only marshal what's required. But that is just the first idea off the top of my head. Thanks, Shawn Wildermuth [EMAIL PROTECTED] > -----Original Message----- > From: dotnet discussion [mailto:[EMAIL PROTECTED]] > On Behalf Of Axel Heitland > Sent: Saturday, May 04, 2002 12:12 PM > To: [EMAIL PROTECTED] > Subject: [DOTNET] Slow serialization > > > Hi all, > > I have a class that mainly contains a short[512,512] array > and I'd like that class to be value marshalled via .net remoting. > > Unfortunately the serialization of such an element takes > about 250ms on my box - that's quite long isn't it?! > > Is there any way to tune the performance? I tried to > implement ISerializable and used the SerializationInfo, but > that didn't result in better performance. > > Any pointer are highly appreciated. > > Regards > Axel > > You can read messages from the DOTNET archive, unsubscribe > from DOTNET, or subscribe to other DevelopMentor lists at > http://discuss.develop.com. > You can read messages from the DOTNET archive, unsubscribe from DOTNET, or subscribe to other DevelopMentor lists at http://discuss.develop.com. You can read messages from the DOTNET archive, unsubscribe from DOTNET, or subscribe to other DevelopMentor lists at http://discuss.develop.com.