CodeProject: C# vs C/C++ Performance. Free source code and programming help - 0 views
-
is compiled twice. Once while the program is written and second when the program is executed at the user's site. The first compilation is done by your C# builder and the second by the .NET Framework on the user's machine. The reason why C# compiled applications could be faster is that, during the second compilation, the compiler knows the actual run-time environment and processor type and could generate instructions that targets a specific processor.
-
A well designed C# program is more than 90% as fast as an equivalent "well-designed" C++ program
-
The problem with "not-freeing" the memory at the right time is that the working set of the application increases which increases the number of "page faults"
- ...1 more annotation...
-
C# is compiled twice. Once while the program is written and second when the program is executed at the user's site. The first compilation is done by your C# builder and the second by the .NET Framework on the user's machine. The reason why C# compiled applications could be faster is that, during the second compilation, the compiler knows the actual run-time environment and processor type and could generate instructions that targets a specific processor