Re: C# vs C++
Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance
I'm impressed by your benchmarks... really. However, keep in mind that
you're comparing managed C++ versus unmanaged C++, but Redmond has
always claimed that managed C++ is faster than managed C# due to better
optimizing done by the C++.NET compiler.
That said, the last word I heard is that starting with .NET 2.0 they
would be concentrating their efforts on introducing better optimization
at the JIT stage, so any differences between the two managed languages
should diminish in the future.
.
Relevant Pages
- Re: "Sorting" assignment
... too slow, other times for optimizing too much, some times for being too ... That is a rather bizarre, not-quite-C compiler, but ok. ... The overlap issue is a different problem, but performing a "swap" on ... CPU hardware feature differences that can be incredibly important to ... (comp.programming) - Re: Why INFINITE loop in a thread occupy so much CPU time??
... measuring code quality or program efficiency. ... You stated the K&R compiler did the silly thing of testing ... In debug mode, nothing, repeat nothing, matters. ... my Ph.D. is in optimizing compiler technology. ... (microsoft.public.vc.mfc) - Re: Compiler code optimization: see code below
... >>I'm writing some C to be used in an embedded environment and the code ... I'm using GCC for the workstation and Diab compiler for the ... >>sure what exactly a good optimizing compiler can optimize away. ... > Neither optimization nor efficiency is defined by the C standard. ... (comp.lang.c) - Re: TextOut() to a DialogBox ???
... In programming, you can code for size or speed. ... are reusing code which has stack overhead. ... Back in the days when I did optimizing compilers for a living, ... the compiler is really poor at redundant ... (microsoft.public.vc.mfc) - Re: How about this syntactic candy?
... Unless the code in the loop is so simple that it is guaranteed that the list.Count property won't change during the execution of the loop, optimizing the expression to avoid reevaluating list.Count would be wrong. ... I once saw a demo of a for loop all compressed into one line with ingenious shortcuts and contractions, and after the optimising compiler had been through it, it generated EXACTLY the same machine code as an alternative loop written out in full. ... In that case, I could see the utility in providing the compiler with an explicit statement to that effect, but it seems to me that the current method required is so easy and simple, I can't imagine the point in adding something extra to the language to support the behavior. ... (microsoft.public.dotnet.languages.csharp) |
|