Click here to Skip to main content
15,902,939 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: EnumDisplayDevices Pin
_anil_22-May-06 16:41
_anil_22-May-06 16:41 
AnswerRe: EnumDisplayDevices Pin
zaro33323-May-06 4:56
zaro33323-May-06 4:56 
GeneralRe: EnumDisplayDevices Pin
zaro33323-May-06 4:58
zaro33323-May-06 4:58 
GeneralRe: EnumDisplayDevices Pin
zaro33323-May-06 5:01
zaro33323-May-06 5:01 
GeneralRe: EnumDisplayDevices [modified] Pin
_anil_23-May-06 15:05
_anil_23-May-06 15:05 
AnswerRe: EnumDisplayDevices [modified] Pin
zaro33324-May-06 4:14
zaro33324-May-06 4:14 
QuestionEmbedded Chart Missing X-Axis Scale Pin
Jenleonard22-May-06 15:38
Jenleonard22-May-06 15:38 
QuestionC++ vs C# Performance Pin
Ed K22-May-06 14:37
Ed K22-May-06 14:37 
Did some work for a friend over the weekend. Basic scenario was that he had a client who wanted to have a program built that processed some numbers. He wanted a test app built in Java, C#, VB.NET and C++. My friend had already developed the C# app so he sent me the code and I translated to C++. Initial testing looked like the C# app was as fast and sometimes faster than the C++ app...in debug and release.

I found that true until I stopped writing to the console. And even more so when I used profile guided optimization. At that point the C++ app embarrased the C# app. And in the same way C# cuts in half the time for VB.NET. The client decided not to look at Java knowing it didn't stand much chance.

C++
Total Time: 25.47ms
Per Tick: 0.00029ms // note that I had to extend this just to see the result!
Per 50K Ticks: 14.62ms

C#
Total Time: 185.10ms
Per Tick: 0.0021ms
Per 50K Ticks: 106.23ms

Bottom line for me is that the heavy lifting still belongs to C++!! Cool | :cool:

ed

~"Watch your thoughts; they become your words. Watch your words they become your actions.
Watch your actions; they become your habits. Watch your habits; they become your character.
Watch your character; it becomes your destiny."
-Frank Outlaw.

AnswerRe: C++ vs C# Performance [modified] Pin
Nibu babu thomas22-May-06 17:14
Nibu babu thomas22-May-06 17:14 
AnswerRe: C++ vs C# Performance Pin
bob1697222-May-06 17:15
bob1697222-May-06 17:15 
GeneralRe: C++ vs C# Performance Pin
Ed K23-May-06 14:06
Ed K23-May-06 14:06 
AnswerRe: C++ vs C# Performance Pin
Ryan Binns22-May-06 18:32
Ryan Binns22-May-06 18:32 
GeneralRe: C++ vs C# Performance Pin
Ed K23-May-06 14:09
Ed K23-May-06 14:09 
QuestionProcessShellCommand and DDE [modified] Pin
tbrake22-May-06 13:07
tbrake22-May-06 13:07 
AnswerRe: ProcessShellCommand and DDE [modified] Pin
Ryan Binns22-May-06 18:33
Ryan Binns22-May-06 18:33 
QuestionApplication Crash Pin
jduff22-May-06 11:36
jduff22-May-06 11:36 
AnswerRe: Application Crash [modified] Pin
Stephen Hewitt22-May-06 13:58
Stephen Hewitt22-May-06 13:58 
AnswerRe: Application Crash Pin
Stephen Hewitt24-May-06 21:28
Stephen Hewitt24-May-06 21:28 
QuestionDll load problem Pin
swatgodjr22-May-06 11:25
swatgodjr22-May-06 11:25 
AnswerRe: Dll load problem Pin
Laxman Auti22-May-06 18:56
Laxman Auti22-May-06 18:56 
GeneralRe: Dll load problem Pin
swatgodjr22-May-06 19:09
swatgodjr22-May-06 19:09 
GeneralRe: Dll load problem Pin
Laxman Auti22-May-06 19:19
Laxman Auti22-May-06 19:19 
GeneralRe: Dll load problem Pin
swatgodjr22-May-06 20:06
swatgodjr22-May-06 20:06 
GeneralRe: Dll load problem [modified] Pin
bob1697223-May-06 5:22
bob1697223-May-06 5:22 
GeneralRe: Dll load problem [modified] Pin
swatgodjr23-May-06 10:37
swatgodjr23-May-06 10:37 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.