Ilya
Fri Mar 03 19:35:36 CST 2006
XML loading time depends on what are you loading and how you do that.
Please see this on how to speed it up:
http://groups.google.com/group/microsoft.public.dotnet.framework.compactframework/msg/6f6a9cbdff962bad
Also note first load includes JITing time which is about 3-5 seconds.
--
Best regards,
Ilya
This posting is provided "AS IS" with no warranties, and confers no rights.
*** Want to find answers instantly? Here's how... ***
1. Go to
http://groups-beta.google.com/group/microsoft.public.dotnet.framework.compactframework?hl=en
2. Type your question in the text box near "Search this group" button.
3. Hit "Search this group" button.
4. Read answer(s).
"John Olbert" <someone@snet.net> wrote in message
news:880B08B2-B380-45CC-9318-CEC4D5FA6301@microsoft.com...
> That is a shame. We are seeing load times of 8 to 12 seconds on a Xml file
> of
> 24kb being read into a DataSet via ReadXml. I was trying to find a way to
> get
> that down to about 1 to 2 seconds. We do a number of reads and the end
> result
> is that the app takes over 60 seconds to load up.
>
> Thanks.
>
> --
> John Olbert
>
>
>
> "Ginny Caughey [MVP]" wrote:
>
>> John,
>>
>> Look at the TextDataAdapter on www.opennetcf.org. Depending on the device
>> and the particular data, CSV can be twice as fast and half as bulky as
>> XML.
>> But on Windows Mobile 5.0 devices running CF 2.0 that I've tested, the
>> performance gap between XML and CSV isn't so dramatic (or even apparent
>> in
>> some cases.)
>>
>> --
>> Ginny Caughey
>> ..NET Compact Framework MVP
>>
>>
>> "John Olbert" <someone@snet.net> wrote in message
>> news:5889C557-65A4-448D-A10D-439BCCBC8338@microsoft.com...
>> > Subject: Using Comma Separated Values to de-serialize a DataSet
>> >
>> > The DataSet.ReadXml() speed under Netcf1.0 is slow. It results in our
>> > App
>> > taking over 60 seconds to start. I have talked to many newsgroups,
>> > researched
>> > articles, etc to find a way to improve this time. The best answer to
>> > date
>> > is
>> > to upgrade to Netcf2.0. I am in the process of doing this but there may
>> > be
>> > problems with updating the physical device.
>> >
>> > One other possibility was mentioned on a newsgroup. That is to use
>> > Comma
>> > Separated Values rather then Xml to load the DataSet. Does anyone know
>> > how
>> > that would be done and if any code snippets or examples exist.
>> >
>> > Thanks.
>> >
>> > --
>> > John Olbert
>> >
>>
>>
>>