large XML

F

Finn J Johnsen

Hi

I've got a rather large XML -file (40mb). My app is to interact with the
data in this XML. I need tips on best way to do (fast) seeks and lookups
in this file?

MS recommends not using the XMLDocument class on XML's larger than 1 MB.

I've tried stripping the XML into my own object structure, and putting
it into a hashtable. The serialized hashtable is 10 mb in size, and
lookups are fast (on a PC app, I assume it would go fast on a CF-device
as well). My idea was to put the serialized hashtable on the CF device
(which offers other problems I wont go into right now), deserialize it,
and do my stuff. However, it turned out that deserializing it took a
long time even on a 2,5ghz PC (3-5 minutes or so), and that is a problem.

Several minutes startuptime on the device app is not something I can accept.

Any suggestions to solve my problem would be appreciated.

Regards,
Finn
 
P

Peter Foot [MVP]

Don't expect the device to perform as well as your desktop PC at processing
the data, and be aware that Serialization is not included in the Compact
Framework. You should consider putting the data into a structured database
e.g. SqlCe and querying that as required.

Peter

--
Peter Foot
Windows Embedded MVP
www.inthehand.com | www.opennetcf.org

Do have an opinion on the effectiveness of Microsoft Windows Mobile and
Embedded newsgroups? Let us know!
https://www.windowsembeddedeval.com/community/newsgroups
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top