Christoph Schittko
10/24/2002 5:46:00 PM
You're not doing anything wrong.
The DataSet bypasses the standard (SLOW, reflection-based) serialization
mechanism by implementing ISerializable and then simply calling WriteXml to
an stream. This approach is much faster than analyzing the class strcuture
and then accessing each field via reflection.
HTH,
--
Christoph Schittko
Software Architect
"Rob Harrop" <rob.harrop@nowhere.com> wrote in message
news:c03a01c27abf$fa8e30c0$35ef2ecf@TKMSFTNGXA11...
> I have created a custom data class that implemets
> ISerializable to serialize 5 internal member variables
>
> When I serialize an array of these ( with around 24,000 )
> items it takes around 54 seconds and produces a file
> arounf 1`.7 MB
>
> When I serialize the same data as a DataSet the file is
> about 4.3 MB but it takes 6 seconds.
>
> What am I doing wrong?