|
dev
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
How good is C# for serializing objects, C++ Vs. C#Hi,
Question from a newbie to C#. How effective is C# with respect to serialization techniques and object persistence ? also, I'm trying to create an application in C# in .Net framework. are there are pros and cons that one needs to be aware of when compared to C++ ? your feedback is appreciated Prasad Well, if your using the built in serialization it doesnt matter because its
all IL under the hood. the Framework classes take care of the serialization for you, your code doesnt actually do the serialization (well, by default) it just points at what to serialize. Now if you are doing custom serialization than if written correctly, the C++ should be faster, but not by much. Show quote "Prasad Venkat" wrote: > Hi, > Question from a newbie to C#. How effective is C# with respect to > serialization techniques and object persistence ? > also, I'm trying to create an application in C# in .Net framework. are > there are pros and cons that one needs to be aware of when compared to C++ ? > > your feedback is appreciated > > Prasad John,
thanks for your response.... that answers what I was looking for. Show quote "john conwell" wrote: > Well, if your using the built in serialization it doesnt matter because its > all IL under the hood. the Framework classes take care of the serialization > for you, your code doesnt actually do the serialization (well, by default) it > just points at what to serialize. > > Now if you are doing custom serialization than if written correctly, the C++ > should be faster, but not by much. > > "Prasad Venkat" wrote: > > > Hi, > > Question from a newbie to C#. How effective is C# with respect to > > serialization techniques and object persistence ? > > also, I'm trying to create an application in C# in .Net framework. are > > there are pros and cons that one needs to be aware of when compared to C++ ? > > > > your feedback is appreciated > > > > Prasad Actually I think Serialization is one area where C++ performs slower (for
some unknown reason). You have to know there is a FALSE belief that ManagedC++ is faster C#. There was an article on MSDN on this topic, but I can't find it again... -- Show quoteThere are 10 kinds of people in this world. Those who understand binary and those who don't. "Prasad Venkat" <PrasadVen***@discussions.microsoft.com> wrote in message news:DD933538-C084-48EC-B6D4-36D0E8E00105@microsoft.com... > John, > thanks for your response.... that answers what I was looking for. > > "john conwell" wrote: > >> Well, if your using the built in serialization it doesnt matter because >> its >> all IL under the hood. the Framework classes take care of the >> serialization >> for you, your code doesnt actually do the serialization (well, by >> default) it >> just points at what to serialize. >> >> Now if you are doing custom serialization than if written correctly, the >> C++ >> should be faster, but not by much. >> >> "Prasad Venkat" wrote: >> >> > Hi, >> > Question from a newbie to C#. How effective is C# with respect to >> > serialization techniques and object persistence ? >> > also, I'm trying to create an application in C# in .Net framework. are >> > there are pros and cons that one needs to be aware of when compared to >> > C++ ? >> > >> > your feedback is appreciated >> > >> > Prasad > You have to know there is a FALSE belief that ManagedC++ is faster C#. Heck, Lloyd, you don't need to reference an ariticle. Managed code is > There was an article on MSDN on this topic, but I can't find it again... managed code, regardless of the syntax. It's all MSIL under the covers. Managed C++ LOOKS like C++, but that's just skin deep. -- Show quoteHTH, Kevin Spencer Microsoft MVP ..Net Developer Ambiguity has a certain quality to it. "Lloyd Dupont" <l*@NewsAccount.galador.net> wrote in message news:O$1jrWHzFHA.2812@TK2MSFTNGP14.phx.gbl... > Actually I think Serialization is one area where C++ performs slower (for > some unknown reason). > You have to know there is a FALSE belief that ManagedC++ is faster C#. > There was an article on MSDN on this topic, but I can't find it again... > > -- > There are 10 kinds of people in this world. Those who understand binary > and those who don't. > "Prasad Venkat" <PrasadVen***@discussions.microsoft.com> wrote in message > news:DD933538-C084-48EC-B6D4-36D0E8E00105@microsoft.com... >> John, >> thanks for your response.... that answers what I was looking for. >> >> "john conwell" wrote: >> >>> Well, if your using the built in serialization it doesnt matter because >>> its >>> all IL under the hood. the Framework classes take care of the >>> serialization >>> for you, your code doesnt actually do the serialization (well, by >>> default) it >>> just points at what to serialize. >>> >>> Now if you are doing custom serialization than if written correctly, the >>> C++ >>> should be faster, but not by much. >>> >>> "Prasad Venkat" wrote: >>> >>> > Hi, >>> > Question from a newbie to C#. How effective is C# with respect to >>> > serialization techniques and object persistence ? >>> > also, I'm trying to create an application in C# in .Net framework. >>> > are >>> > there are pros and cons that one needs to be aware of when compared to >>> > C++ ? >>> > >>> > your feedback is appreciated >>> > >>> > Prasad > > > Heck, Lloyd, you don't need to reference an ariticle. Managed code is Oops.. probably it was plain C++ vs C# in fact...> managed code, regardless of the syntax. It's all MSIL under the covers. > Managed C++ LOOKS like C++, but that's just skin deep. > Rico Mariani, and CLR perf architect, did a blog seriese on comparing .Net to
unmanaged C++. Here is the first of a 6 part seriese. http://blogs.msdn.com/ricom/archive/2005/05/10/416151.aspx Show quote "Lloyd Dupont" wrote: > > Heck, Lloyd, you don't need to reference an ariticle. Managed code is > > managed code, regardless of the syntax. It's all MSIL under the covers. > > Managed C++ LOOKS like C++, but that's just skin deep. > > > Oops.. probably it was plain C++ vs C# in fact... > > > |
|||||||||||||||||||||||