DataSet.ReadXml() reading time

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Is it normal for DataSet.ReadXml() reading a 24kb Xml file in a Sh4 WinCE to
take about 3.7 seconds? The Schema was read first. Reading the Schema first
reduced it from 7.5 seconds.

If so is there anything I can do to speed up the process beyond this point.

My task is to migrate a desktop App to the WinCe and it uses alot of
ReadXml's. The App takes a few minutes just to start up.

Thanks.
 
Yes it's normal, both ReadXML and WriteXML are infuriatingly slow. You can
try the CF2.0 (I don't know if it's any faster but it may be) or you can try
writing your own code to extract the data (it is only a text file after all
and it is definately faster). It has also been asked a few times here so
you may find other suggestions on this forum.
 
John,

Although ReadXML is about twice as fast on average in CF 2 compared with CF
1, XML parsing may still just not perform as well as you'd like. If you can
control desktop and CE sides, consider using CSV instead. The CSV
TextDataAdapter on www.opennetcf.org is generally going to be about twice as
fast as ReadXML with schema. You'll need to test with the type of data you
have, since results vary based on that.
 
Back
Top