Click here to Skip to main content
15,913,944 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Questioncontrolling the creation of objects Pin
kumar_mk23-May-06 18:47
kumar_mk23-May-06 18:47 
AnswerRe: controlling the creation of objects Pin
_AnsHUMAN_ 23-May-06 19:15
_AnsHUMAN_ 23-May-06 19:15 
AnswerRe: controlling the creation of objects Pin
Nibu babu thomas23-May-06 19:16
Nibu babu thomas23-May-06 19:16 
QuestionHow to Get Current System ip Pin
bujji_bec23-May-06 18:38
bujji_bec23-May-06 18:38 
AnswerRe: How to Get Current System ip [modified] Pin
Nibu babu thomas23-May-06 18:52
Nibu babu thomas23-May-06 18:52 
AnswerRe: How to Get Current System ip Pin
Hamid_RT23-May-06 19:03
Hamid_RT23-May-06 19:03 
QuestionMy Access DB Got Mad! Pin
Hamed Musavi23-May-06 18:21
Hamed Musavi23-May-06 18:21 
NewsC++ vs C# vs C++/CLI Performance [modified] Pin
Ed K23-May-06 17:08
Ed K23-May-06 17:08 
Copy of earlier post however I also implemented the app in C++/CLI. If you've already read this then just skip to the bottom. Also of note: Using VS2005 & profiled the C++ code.

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

C++/CLI
Total Time: 174.00ms
Per Tick: 0.0020ms
Per 50K Ticks: 99.86ms

Native C++ still! 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.


-- modified at 23:09 Tuesday 23rd May, 2006
GeneralRe: C++ vs C# vs C++/CLI Performance [modified] Pin
bob1697223-May-06 17:36
bob1697223-May-06 17:36 
GeneralRe: C++ vs C# vs C++/CLI Performance [modified] Pin
Maxwell Chen23-May-06 18:06
Maxwell Chen23-May-06 18:06 
GeneralRe: C++ vs C# vs C++/CLI Performance [modified] Pin
Sarath C23-May-06 18:13
Sarath C23-May-06 18:13 
GeneralRe: C++ vs C# vs C++/CLI Performance [modified] Pin
Maxwell Chen23-May-06 18:21
Maxwell Chen23-May-06 18:21 
AnswerRe: C++ vs C# vs C++/CLI Performance [modified] Pin
Ed K24-May-06 6:49
Ed K24-May-06 6:49 
GeneralRe: C++ vs C# vs C++/CLI Performance [modified] Pin
bob1697224-May-06 18:01
bob1697224-May-06 18:01 
Questionprogressbar and xp themes help Pin
locoone23-May-06 17:07
locoone23-May-06 17:07 
AnswerRe: progressbar and xp themes help Pin
Nibu babu thomas23-May-06 17:24
Nibu babu thomas23-May-06 17:24 
GeneralRe: progressbar and xp themes help Pin
locoone24-May-06 13:25
locoone24-May-06 13:25 
AnswerRe: progressbar and xp themes help Pin
Hamid_RT23-May-06 19:23
Hamid_RT23-May-06 19:23 
GeneralRe: progressbar and xp themes help Pin
locoone24-May-06 13:54
locoone24-May-06 13:54 
QuestionPrinting CEditView Pin
richard stott23-May-06 16:53
richard stott23-May-06 16:53 
AnswerRe: Printing CEditView Pin
bob1697223-May-06 17:24
bob1697223-May-06 17:24 
Questionrecv question Pin
followait23-May-06 16:32
followait23-May-06 16:32 
AnswerRe: recv question [modified] Pin
bob1697223-May-06 17:02
bob1697223-May-06 17:02 
Questionproblems with reading serial port..help!! Pin
Nawar_nrr23-May-06 15:51
Nawar_nrr23-May-06 15:51 
AnswerRe: problems with reading serial port..help!! Pin
Steve Echols23-May-06 18:30
Steve Echols23-May-06 18:30 

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.