Quote Originally Posted by Goliatus
Quote Originally Posted by ggs
Managed code is almost as fast as native code (Microsoft says that c# is ~10% slower than C++).
In some math, string, list operations test managed code was 2x slower than code compiled in D7 If .NET programs run on VM then it is not any suprise for me.
The string & list stuff doesnt suprise me too much.

If you just port a bunch of string manipulation code to .NET it will be slow, because string are immutable.

This means a single change causes the entire string to be reallocated.

As for the list stuff, dynamica array have to be recreated then the old contents copied to the new. And boxing isnt hidiously efficent either

Heheh, I don't agree with You. Nobody has seriously tested .NET in such things like physics or graphics where performance is really needed.
Only real way is to test & find out. But the performance comparision of different compilers Clootie linked to showed that the various .NET langauges werent that bad.