Re: C# and compiler optimizer.



On Fri, 15 Apr 2005 09:25:15 +0200, "Olaf Baeyens"
<olaf.baeyens@xxxxxxxxxx> wrote:

>Doing vector calculation, a few millions of them in one pass. :-)
>Those vectors have public properties X, Y and Z that (looking at IL asm)
>appears not to be inline even though they are just stupid float without any
>additional coding.

Inlining of trivial property getters/setters is done by the JIT
compiler, so that's actually not a problem.

However, your project sounds as if it could profit from some
higher-level optimizations which the C#/VB and JIT compilers aren't
doing, neither in this nor in the next version -- the MS teams are too
busy implementing new features, I suppose.

That leaves the C++ compiler which is the only one that emits
optimized IL code. Unfortunately the current version of C++ for the
..NET Framework (called "Managed C++") is pretty ugly but .NET 2.0 will
ship with a much improved version called "C++/CLI".
--
http://www.kynosarges.de
.


Loading