rchiu5hk
September 29th, 2009, 02:23 AM
Is there any difference in performance between CSharp and C++ if I am writing network programming in these two language??
|
Click to See Complete Forum and Search --> : Difference in performance between CSharp and C++ rchiu5hk September 29th, 2009, 02:23 AM Is there any difference in performance between CSharp and C++ if I am writing network programming in these two language?? Mutant_Fruit September 29th, 2009, 02:30 AM Yes. There's also a difference between two apps written in C++. Will you notice or care? An educated guess would say "probably not". toraj58 September 30th, 2009, 03:15 AM for me this feature that c++ allows default arguments on function parameters is good also. vcdebugger September 30th, 2009, 06:16 AM I think C++ is more faster in performance than C# as it does not contain more graphics and other framework libraries that .NET provide you... Mutant_Fruit September 30th, 2009, 07:34 AM I think C++ is more faster in performance than C# as it does not contain more graphics and other framework libraries that .NET provide you... The quantity of pre-written libraries which are available to use has no affect on performance. http://blogs.msdn.com/ricom/archive/2005/05/10/416151.aspx Read the entire article. It's an implementation of a chinese-english dictionary in C++ and C#. C# gave better performance for a *lot* less coding effort. After serious (unmaintainable) optimisations were applied to the C++ version, it was able to complete the task in 80ms whereas the initial C# version completed in 120ms or so. The slightly optimised C# version could complete the task in < 100ms. Moral of the story. No single language is 'fastest'. It all depends on the algorithms you use. foamy September 30th, 2009, 10:27 AM It's like asking "which car is better". The end result will always come down to the driver :D Mutant_Fruit September 30th, 2009, 10:35 AM It's like asking "which car is better". The end result will always come down to the driver :D That's a much better way of putting it :) BigEd781 September 30th, 2009, 11:37 AM Just as an aside... C# apps will always have a slightly longer startup time, but the JIT compiler can apply optimizations for the machine that the application is currently being run on. The C++ compiler has to be far more general because it compiles the program to native code, so it has to run (practically) anywhere. Like the others have said, anyone who says something like "C++ is faster than C#" doesn't know what they are talking about, and in your case it would likely not even matter if one were slightly faster than the other. codeguru.com
Copyright Internet.com Inc., All Rights Reserved. |