Home All Groups Group Topic Archive Search About

How good is C# for serializing objects, C++ Vs. C#

Author
7 Oct 2005 7:08 PM
Prasad Venkat
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

Author
7 Oct 2005 10:47 PM
john conwell
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
Author
8 Oct 2005 4:00 PM
Prasad Venkat
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
Author
9 Oct 2005 2:03 AM
Lloyd Dupont
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.
Show quote
"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
Author
9 Oct 2005 1:26 PM
Kevin Spencer
> 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...

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.

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
Ambiguity has a certain quality to it.

Show quote
"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
>
>
Author
9 Oct 2005 1:39 PM
Lloyd Dupont
> 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...
Author
9 Oct 2005 5:04 PM
john conwell
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...
>
>
>

AddThis Social Bookmark Button