Some additional information.

I'm using a binary formatter not a soap/xml formatter so array
optimization should be possible.

Thinking this I tried to use a single dim array like 
        "short [] x = new short[512*512]" 
and that gives very good results. 

Something about 4,5 ms per array, but a short[,] is incredible slow (235
ms).


Is this just poorly optimized (will it be fixed?) or is there a good
reason for this significant slow down?

Regards
        Axel

-----Original Message-----
From: Axel Heitland 
Sent: Sonntag, 5. Mai 2002 01:52
To: [EMAIL PROTECTED]
Subject: Re: [DOTNET] Slow serialization


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.

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