shriop
Mon Feb 06 08:46:10 CST 2006
You might want to check out my csv parser that I sell for parsing those
csv files,
http://www.csvreader.com . It works in CF 1.0, handles all
the nastiness of the csv, is very fast, and uses memory well.
Bruce Dunwiddie
Kay-Christian Wessel wrote:
> My problem is that my 'machine' is a PDA with Compact Framework 1.0, running
> CE 4.2 with no possible upgrade to Compact Framework 2.0.
>
> This PDA is also very slow, so what performs slow on my 2,5 Ghz Pentium 4,
> will almost stop working on this 400 Mhz PDA.
>
> I guess my app will perform much better if I use some other container than
> datasets when sending data ?
>
> I'm already compacting and encrypting the datasets of course, but this does
> not help so much on performance.
>
> I'm considering passing semicolon-separated files instad.(CSV) It will
> probably boost performance by some 1000 percents.
>
> Kay
>
> "Sahil Malik [MVP C#]" <contactmethrumyblog@nospam.com> skrev i melding
> news:uTxLyWbKGHA.360@TK2MSFTNGP12.phx.gbl...
> > Sorry I didn't reply earlier Kay, just been busy.
> >
> > To make the long story short - the answer is "No" - especially if you want
> > both performance and interoperability between DS 1.x and DS 2.x.
> >
> > What you could do however in a 1.x application, is to create your own
> class
> > that inherits from a 2.x dataset, install both frameworks on your machine,
> > switch over to 2.x dataset (via your subclass), when you run into a
> dataset
> > performance issue, such as remoting it etc. This can be a bit messy and
> > complicated, but alternatively you could simply use datasetsurrogate
> (search
> > msdn kb for "datasetsurrogate")
> >
> > - Sahil Malik [MVP]
> > ADO.NET 2.0 book -
> >
http://codebetter.com/blogs/sahil.malik/archive/2005/05/13/63199.aspx
> > __________________________________________________________
> >
> >
> > "Kay-Christian Wessel" <kayhanse@start.no> wrote in message
> > news:eEZFZr4JGHA.532@TK2MSFTNGP15.phx.gbl...
> > > Well, I tried the ReadXML and WriteXML methods and they worked. Only one
> > > problem. They are very slow compared to the binary formatter.(10 times
> > > slower)
> > >
> > > Any other suggestions which will perform better ?
> > >
> > >
> > > Kay-Christian Wessel
> > >
> > >
> > > "Kay-Christian Wessel" <kayhanse@start.no> wrote in message
> > > news:%23NN9Sa4JGHA.596@TK2MSFTNGP10.phx.gbl...
> > >>I tested this and it is not possible using the binary formatter.
> > >>
> > >>
> > >> Here is the exeption thrown when trying to deserialize a ADO.NET 2.0
> > >> dataset to ADO.NET 1.0 :
> > >>
> > >> An unhandled exception of type
> > >> 'System.Runtime.Serialization.SerializationException' occurred in
> > >> mscorlib.dll
> > >>
> > >> Additional information: Type is not resolved for member
> > >> System.Data.SerializationFormat, System.Data, Version=2.0.0.0,
> > >> Culture=neutral, PublicKeyToken=b77a5c561934e089.
> > >>
> > >>
> > >>
> > >> I've tried to reference the System.Data.dll from the 1.1 Framework, but
> > >> it needs the system.dll from the 1.1 Framework to work, and then I
> loose
> > >> all the nice features of VS2005.
> > >>
> > >> The reason for doing this is because Windows CE 4.2 is not working with
> > >> VS2005, and I must develop for this platform.
> > >>
> > >> Could I just send the XML instead ?
> > >>
> > >> And read it into a dataset on the device ?
> > >>
> > >>
> > >>
> > >> Kay-Christian Wessel
> > >>
> > >>
> > >> "Kay-Christian Wessel" <KayHanse@Netcom.no> wrote in message
> > >> news:Olmb0KxJGHA.420@tk2msftngp13.phx.gbl...
> > >>> Is it possible to serialize an ADO.NET 1.0 dataset to xml and then to
> > >>> deserialize it back to an ADO.NET 2.0 dataset ? And visa versa ?
> > >>>
> > >>> Is this functionality supported for the Compact Framework also ?
> > >>>
> > >>> Best regards
> > >>> Kay-Christian Wessel
> > >>>
> > >>>
> > >>
> > >>
> > >
> > >
> >
> >