Click here to Skip to main content
15,921,905 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Optimization techniques Pin
KarstenK5-Jul-07 2:54
mveKarstenK5-Jul-07 2:54 
AnswerRe: Optimization techniques Pin
led mike5-Jul-07 4:44
led mike5-Jul-07 4:44 
GeneralRe: Optimization techniques Pin
Joan M5-Jul-07 7:14
professionalJoan M5-Jul-07 7:14 
GeneralRe: Optimization techniques Pin
led mike5-Jul-07 7:28
led mike5-Jul-07 7:28 
AnswerRe: Optimization techniques Pin
#realJSOP5-Jul-07 7:12
professional#realJSOP5-Jul-07 7:12 
AnswerRe: Optimization techniques Pin
Joe Woodbury5-Jul-07 10:02
professionalJoe Woodbury5-Jul-07 10:02 
AnswerRe: Optimization techniques Pin
kakan5-Jul-07 19:43
professionalkakan5-Jul-07 19:43 
GeneralRe: Optimization techniques Pin
DevMentor.org8-Jul-07 23:51
DevMentor.org8-Jul-07 23:51 
Ah memories, I had the exact same experience, also a string object was getting created and initialized to a hard coded value, that was expensive Smile | :)

Usually from my experience the bottleneck problems are in the design!

Also you don't want to create / destroy / initialize a lot of things. If you can cache them or create them once and reuse them that is more ideal. Of course you may still need to reset state variables =) but the cost of creating and destroying an object will have been negated!

If you're optimizing someone else existing code, expect to break it and introduce subtle bugs with the above idea. Chances are you are going to fail to account for properly resetting state variables before reusing one or more object / data structure.
GeneralRe: Optimization techniques Pin
himuskanhere19-Jul-07 20:32
himuskanhere19-Jul-07 20:32 
GeneralRe: Optimization techniques Pin
DevMentor.org19-Jul-07 21:28
DevMentor.org19-Jul-07 21:28 
QuestionWhat is Data Execution Prevention? Pin
Amar Sutar5-Jul-07 1:13
Amar Sutar5-Jul-07 1:13 
AnswerRe: What is Data Execution Prevention? Pin
Chris Losinger5-Jul-07 1:22
professionalChris Losinger5-Jul-07 1:22 
QuestionHow to set CDialog's minimum size? Pin
Peter, Chan5-Jul-07 0:37
Peter, Chan5-Jul-07 0:37 
AnswerRe: How to set CDialog's minimum size? Pin
Nibu babu thomas5-Jul-07 0:42
Nibu babu thomas5-Jul-07 0:42 
AnswerRe: How to set CDialog's minimum size? Pin
Iain Clarke, Warrior Programmer5-Jul-07 0:45
Iain Clarke, Warrior Programmer5-Jul-07 0:45 
QuestionThrow Pin
sanjutvm4-Jul-07 23:58
sanjutvm4-Jul-07 23:58 
AnswerRe: Throw Pin
toxcct5-Jul-07 0:10
toxcct5-Jul-07 0:10 
GeneralRe: Throw Pin
tom groezer5-Jul-07 5:25
tom groezer5-Jul-07 5:25 
GeneralRe: Throw Pin
toxcct5-Jul-07 5:35
toxcct5-Jul-07 5:35 
QuestionRe: Throw Pin
Mark Salsbery5-Jul-07 8:13
Mark Salsbery5-Jul-07 8:13 
AnswerRe: Throw Pin
toxcct5-Jul-07 21:20
toxcct5-Jul-07 21:20 
AnswerRe: Throw Pin
Mark Salsbery5-Jul-07 8:11
Mark Salsbery5-Jul-07 8:11 
GeneralRe: Throw Pin
DevMentor.org9-Jul-07 0:02
DevMentor.org9-Jul-07 0:02 
GeneralRe: Throw Pin
Mark Salsbery9-Jul-07 6:00
Mark Salsbery9-Jul-07 6:00 
GeneralRe: Throw Pin
DevMentor.org9-Jul-07 17:46
DevMentor.org9-Jul-07 17:46 

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.