Performance difference.

O

objectref

Hi to all folks here,

can anyone give me an estimate of the difference in performance between the
new versions
of C# and C++ 2005 (for .net of course) ?

I am a C# programmer and i am very curious to know if there is really a
(noticable) difference between these two
when compiling to IL.
Microsoft says that the new Visual C++ "has new optimization technology
that has improved the speed of Microsoft products up to 30 percent".
Do they refer to unmanged code, managed code or both ?

Thanks a lot for any help,

objectref
 
C

Carl Daniel [VC++ MVP]

objectref said:
Hi to all folks here,

can anyone give me an estimate of the difference in performance
between the new versions
of C# and C++ 2005 (for .net of course) ?

I am a C# programmer and i am very curious to know if there is really
a (noticable) difference between these two
when compiling to IL.
Microsoft says that the new Visual C++ "has new optimization
technology that has improved the speed of Microsoft products up to 30
percent". Do they refer to unmanged code, managed code or both ?

I don't have any figures for C# - I would expect any performance gains there
to be from CLR/JIT improvements and thus carry across all .NET languages.

The C++ optimization feature alluded to in the 30% figure is PGO: Profile
Guided Optimization, and it's only available for native code. Sun's HotSpot
JVMs do very similar kinds of optimization for Java, so it's not unlikely
that a future version of the CLR could include PGO-like technology in the
JIT compiler.

For more on PGO see

http://msdn2.microsoft.com/en-us/library/e7k32f4k

-cd
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top