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
Carl Daniel [VC++ MVP] - 16 Nov 2005 15:08 GMT
> Hi to all folks here,
>
[quoted text clipped - 8 lines]
> 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