Click here to Skip to main content
16,006,065 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: About debug version and release version. Pin
Chris Losinger1-Sep-01 18:49
professionalChris Losinger1-Sep-01 18:49 
QuestionEfficient Code? Pin
A.R.31-Aug-01 13:58
A.R.31-Aug-01 13:58 
AnswerRe: Efficient Code? Pin
Christian Graus31-Aug-01 14:22
protectorChristian Graus31-Aug-01 14:22 
AnswerRe: Efficient Code? Pin
31-Aug-01 18:37
suss31-Aug-01 18:37 
AnswerRe: Efficient Code? Pin
Igor Sukhov1-Sep-01 12:02
Igor Sukhov1-Sep-01 12:02 
GeneralRe: Efficient Code? Pin
Ravi Bhavnani1-Sep-01 12:09
professionalRavi Bhavnani1-Sep-01 12:09 
GeneralRe: Efficient Code? Pin
Igor Sukhov1-Sep-01 12:48
Igor Sukhov1-Sep-01 12:48 
GeneralRe: Efficient Code? Pin
Ravi Bhavnani1-Sep-01 13:25
professionalRavi Bhavnani1-Sep-01 13:25 
привет Igor,

I agree it's more elegant and therefore more appealing. The problem about efficiency is that one has to determine how the code will be used. If the list reversal would be done infrequently, a recursive and interative solution would work equally. However, if the reversal was being done in a loop, we'd be better off with a an interative approach.

In my experience, a decision to suggest a code change during a code review hinges on these factors (I'm sure there are more), in descending order of importance:

- Is the code clear and easy to maintain?
- Can it be made to run faster?
- Can it be used to take less space?

Cheers,

/ravi

"There is always one more bug..."
http://www.ravib.com
ravib@ravib.com

GeneralRe: Efficient Code? Pin
Igor Sukhov2-Sep-01 4:25
Igor Sukhov2-Sep-01 4:25 
GeneralRe: Efficient Code? Pin
Ravi Bhavnani1-Sep-01 13:26
professionalRavi Bhavnani1-Sep-01 13:26 
GeneralRe: Efficient Code? Pin
Igor Sukhov2-Sep-01 4:26
Igor Sukhov2-Sep-01 4:26 
GeneralRe: Efficient Code? Pin
A.R.2-Sep-01 22:57
A.R.2-Sep-01 22:57 
GeneralRe: Efficient Code? Pin
Igor Sukhov3-Sep-01 0:01
Igor Sukhov3-Sep-01 0:01 
GeneralCustom Dialogs Pin
Frank Deo31-Aug-01 11:18
Frank Deo31-Aug-01 11:18 
GeneralRe: Custom Dialogs Pin
Christian Graus31-Aug-01 11:36
protectorChristian Graus31-Aug-01 11:36 
GeneralRe: Custom Dialogs Pin
Frank Deo31-Aug-01 12:54
Frank Deo31-Aug-01 12:54 
GeneralRe: Custom Dialogs Pin
Christian Graus31-Aug-01 13:20
protectorChristian Graus31-Aug-01 13:20 
GeneralHandler for Highlighting Text Pin
Dave Glick31-Aug-01 11:09
Dave Glick31-Aug-01 11:09 
GeneralRe: Handler for Highlighting Text Pin
Not Active31-Aug-01 12:31
mentorNot Active31-Aug-01 12:31 
GeneralError LNK2001 Pin
31-Aug-01 8:28
suss31-Aug-01 8:28 
GeneralRe: Error LNK2001 Pin
Not Active31-Aug-01 9:32
mentorNot Active31-Aug-01 9:32 
GeneralActiveX controls and BitBlt Pin
squizz31-Aug-01 5:24
squizz31-Aug-01 5:24 
Generallooking for clarification Pin
Josh Knox31-Aug-01 5:21
Josh Knox31-Aug-01 5:21 
GeneralRe: looking for clarification Pin
Chris Losinger31-Aug-01 6:07
professionalChris Losinger31-Aug-01 6:07 
GeneralRe: looking for clarification Pin
Josh Knox31-Aug-01 6:30
Josh Knox31-Aug-01 6: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.