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
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