Thanks for your reply,

but a jagged array is not usable in this case. I need to keep all the
shorts in my array in a coninous sequence of words and jagged arrays
does not behave like that..

So I'll use a single-dim array which is fast enough and pass the second
dimension explicity. Reconstructing the two-dim-array in the
serialization constructur is easy, but the required overhead in
ISerializale.GetObjectData is odd.

However it is faster than using the build-in bits.

Thanks again
        Axel

-----Original Message-----
From: Joel Mueller [mailto:[EMAIL PROTECTED]]
Sent: Sonntag, 5. Mai 2002 18:57
To: [EMAIL PROTECTED]
Subject: Re: [DOTNET] Slow serialization


I read in a performance whitepaper that for v1 of .NET,
jagged arrays (short[][]) can perform significantly better than 2D
arrays (short[,]). They said that this disparity should be eliminated in
a future release. Perhaps you should try it with a jagged array and see
what happens...

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