> C# and managed C++.NET both compile down to the same MSIL
Untrue? I was under the impression that MC++ can be faster than C# because
the C++ front-end performs many global & peephole optimizations that are not
in C# yet -- these get carried over to the generated CLR.
If there is much blocking I/O in your program (as you suggest) then you
probably won't notice much difference.
In my (unscientific) tests, C# came in at about 2x slower than C++ -- which
I consider to be fantastic.
IMHO, any reasonable (YMMV) slowdown is worth the price in dev-time and
safety.
(In contrast, Python was a few hundred times slower than C++ -- even then,
Python is pretty nice and I could have optimized away most of the
hot-spots.)
m
"Kyril Magnos" <ky**********@yahoo.com> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl...
Hi Jazper,
Are you asking in terms of managed vs. unmanaged code? Also, C# vs. what
version of C++? C# and managed C++.NET both compile down to the same MSIL
code and execute in the CLR, so the speed test would be equal. (I'm not
sure if unmanaged C++.NET compiles down to IL though).
--
HTH
Kyril Magnos
"I'm not a developer anymore, I'm a software engineer now!" :-)
"Jazper Manto" <ej*****@hotmail.com> wrote in message
news:%2****************@TK2MSFTNGP11.phx.gbl...
| hi
|
| i'm looking for a speed test of c# vs. c++.
| the test should be representative for mass data production.
| it should also include IO operations.
|
| can anybody give me a good link from the internet?
| thanx jazper.
|
|