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.

Reply via email to