Click here to Skip to main content
15,890,506 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: C++ exe crashes in XP OS Pin
Graham Breach3-Mar-10 9:02
Graham Breach3-Mar-10 9:02 
GeneralRe: C++ exe crashes in XP OS Pin
Richard Andrew x643-Mar-10 9:20
professionalRichard Andrew x643-Mar-10 9:20 
QuestionCString and Intellisense Pin
Fernando A. Gomez F.3-Mar-10 8:05
Fernando A. Gomez F.3-Mar-10 8:05 
QuestionRe: CString and Intellisense Pin
Maximilien3-Mar-10 8:36
Maximilien3-Mar-10 8:36 
GeneralRe: CString and Intellisense Pin
Fernando A. Gomez F.3-Mar-10 9:03
Fernando A. Gomez F.3-Mar-10 9:03 
QuestionEfficiency Pin
Ofer Gross3-Mar-10 2:33
Ofer Gross3-Mar-10 2:33 
AnswerRe: Efficiency Pin
Eugen Podsypalnikov3-Mar-10 2:40
Eugen Podsypalnikov3-Mar-10 2:40 
AnswerRe: Efficiency Pin
Covean3-Mar-10 2:58
Covean3-Mar-10 2:58 
I think both should use the same time. In general reading is faster then writing,
but both calls should be around 2-4 cycles on the cpu. So even if
reading would be faster then writing (assume 1 cpu cycle), you have to call this
function around ~2.5-3 billion times to have a differ of one second.

-> Conclusion:
If you really need that performance than you are using the wrong language and not
the wrong option.

At least:
Use option b, because if this function is called very often, the cpu also should have
a higher cache hit rate for this and the cpu doesn't have to do a memory access.
Greetings
Covean

AnswerRe: Efficiency Pin
David Crow3-Mar-10 2:58
David Crow3-Mar-10 2:58 
AnswerRe: Efficiency Pin
CPallini3-Mar-10 3:18
mveCPallini3-Mar-10 3:18 
GeneralRe: Efficiency Pin
Covean3-Mar-10 3:44
Covean3-Mar-10 3:44 
GeneralRe: Efficiency Pin
CPallini3-Mar-10 6:47
mveCPallini3-Mar-10 6:47 
GeneralRe: Efficiency Pin
Covean3-Mar-10 22:22
Covean3-Mar-10 22:22 
GeneralRe: Efficiency Pin
CPallini3-Mar-10 23:13
mveCPallini3-Mar-10 23:13 
GeneralRe: Efficiency Pin
Covean3-Mar-10 23:28
Covean3-Mar-10 23:28 
GeneralRe: Efficiency Pin
CPallini3-Mar-10 23:37
mveCPallini3-Mar-10 23:37 
GeneralRe: Efficiency Pin
Covean3-Mar-10 23:48
Covean3-Mar-10 23:48 
GeneralRe: Efficiency Pin
KarstenK3-Mar-10 4:19
mveKarstenK3-Mar-10 4:19 
AnswerRe: Efficiency Pin
Alain Rist3-Mar-10 3:53
Alain Rist3-Mar-10 3:53 
AnswerRe: Efficiency Pin
Alan Balkany3-Mar-10 4:22
Alan Balkany3-Mar-10 4:22 
GeneralRe: Efficiency Pin
Covean3-Mar-10 4:35
Covean3-Mar-10 4:35 
GeneralRe: Efficiency Pin
Alan Balkany3-Mar-10 4:41
Alan Balkany3-Mar-10 4:41 
GeneralRe: Efficiency Pin
CPallini3-Mar-10 7:12
mveCPallini3-Mar-10 7:12 
AnswerRe: Efficiency Pin
Chris Losinger3-Mar-10 5:04
professionalChris Losinger3-Mar-10 5:04 
AnswerRe: Efficiency Pin
supercat93-Mar-10 9:19
supercat93-Mar-10 9:19 

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.