.NET Framework - XML Serializer in CF (slow)
Asked By Batvanio
07-Jan-10 01:40 PM
Hello
We are using XML serialization to serialize a large array of objects.
We have two versions of the same application - one for standard PC
(Windows XP Embedded, using the regular .NET framework - currently
2.0), and a CF version running on Win CE 6.0 (using .NET compact
framework 2.0 as well).
We have observerd a huge difference in performance using XML
serializer between the standard and compact framework. Using excactly
the same hardware ( an ICOP 800 Mhz SoC - based system), the XP
Embedded version took about 50 TIMES faster than the CE version. Same
application, same data, same hardware.
Does anyone have any suggestion where should we look to improve this?
Any alternative serialization platforms? We still prefer to use XML
rather than binary serialization if possible because of future
interoperability with other software packages....
Thanks,
Ivan
Windows XP Embedded
(1)
XP
(1)
Application
(1)
OpenNET
(1)
SoC
(1)
Serializer
(1)
Ivan
(1)
Unncecessary
(1)
Ginny Caughey replied to Batvanio
Ivan,
I know you said you prefer XML serialization over binary, but this binary
serializer is a lot faster:
http://www.codeproject.com/KB/cs/CF_serializer.aspx
--
Ginny Caughey
Device Application Development MVP
Batvanio replied to Ginny Caughey
Thanks, I will look at this.
I also noticed that there used to be a XML serializer in the OpenNET
CF (at least as of version 1.4), but it has gone in 2.3 (or at least I
cannot see it there). Does anyone know what happened to it? Was it
considered unncecessary because of the .NET 2.0 built - in serializer?
Ivan

Conversion form previous VS .NET Framework In the past converted an application written in an old (<2005) VS to VS 2005. Of the application I would like to change the layout. But it would appear that layout issues were do to overcome this problem? It would be too much work to completely rewrite the application. Zach. C# Discussions Visual Studio (1) ComponentResourceManager (1) ContentAlignment (1) GraphicsUnit (1) EventHandler (1) FontStyle (1) CheckBox (1) TextBox (1) Is this a Windows Forms application? If so, there ishould be a region titled is not totally packed with controls, post InitializeComponent() { System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(InvoiceForm)); this.textBox17 = new System.Windows.Forms.TextBox(); this.textBox15 = new System.Windows.Forms.TextBox(); this.textBox7 = new System.Windows.Forms.TextBox(); this.textBox6 = new System.Windows.Forms.TextBox(); this.textBox5 = new System.Windows.Forms
VB 2008] Warum dispose aller Fenster bei exit Application.run? .NET Framework Hi, ich bin heute auf ein Verhalten gestossen, das ich f?r Form With {.Text = "f2"} f1.Show() f2.Show() fMain = New Form With {.Text = "fMain #1"} Application.Run(fMain) End Sub End Class Festgestellt habe ich, dass _in_ Application.Run, nachdem fMain geschlossen wurde, die Dispose-Methode _aller_ ge?ffneten Fenster aufgerufen wird. Ich finde das nicht richtig. Deutlich wird das, wenn man nach dem Application.Run diese Zeilen einf?gt: fMain = New Form With {.Text = "fMain #2"} Application.Run(fMain) Schlie?t man nun die erste Instanz von fMain werden f1 und f2 sieht so aus: bla.exe!MeineForm.Dispose(Boolean) System.dll!System.ComponentModel.Component.Dispose() System.Windows.Forms.dll!System.Windows.Forms.Application.ThreadWindows.Dispose() System.Windows.Forms.dll!System.Windows.Forms.Application.ThreadContext.DisposeThreadWindows() System.Windows.Forms
How to launch a Windows application from a ASP.Net web application .NET Framework Hello Community I have successfully created a C# Windows application with SQL Server in the back end. I have also successfully created an ASP.NET web application using C# and SQL Server in th back end. Any more applications will be created with ASP.Net. I do not want to rewrite the Windows application so I am curious, from the ASP.NET application if I create a put a
Windows Programmier Richtlinien .NET Framework Servus! Kennt jemand einen Link zu Windows-Richlinien bzgl der nutzung vom Verzeichnissen in Programmen? Das ist etwas unpr??zise. Im Speziellen schicken wo derartiges erkl??rt wird. MfG, Ulf C# - German Discussions Visual Studio .NET (1) Windows XP (1) Application.CommonAppDataPath (1) Application.UserAppDataPath (1) Application Compatibility (1) Windows Vista (1) Windows 7 (1) Outlook (1) Hallo Ulf, Einstellungen werden nicht unbedingt im Programm
the default "hello world" app (F7), but got some message about "the Standard SDK for Windows CE .NET" and the choosen (not by me!) processor being incompatible and "cannot be run look for any advice. I surely could use some help / directions. Regards, Rudy Wieser WindowsCE Embedded VC Discussions Pocket PC 2003 SDK (1) Windows Mobile 5.0 (1) Windows XP (1) Virtual PC (1) Internet Explorer 8 (1) Windows Mobile 2003 (1) Visual Studio 2008 (1) Visual Studio 2005 (1) You need to download pointer / link or two. By the way, do you have any idea to why that "Windows Mobile 5.0 Pocket PC SDK" refuses to install (its stated reason does not match http: / / www.pocketpcfaq.com / faqs / comparison / wm50ppcphone.php So now I know you have a Windows Mobile 5 Pocket PC Phone Edition, and so you should use the SDK for that