Click here to Skip to main content
15,895,142 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Which is faster? Pin
Code-o-mat19-Jun-10 1:13
Code-o-mat19-Jun-10 1:13 
GeneralRe: Which is faster? Pin
Druuler19-Jun-10 5:54
Druuler19-Jun-10 5:54 
GeneralRe: Which is faster? Pin
Code-o-mat19-Jun-10 5:57
Code-o-mat19-Jun-10 5:57 
GeneralRe: Which is faster? Pin
Druuler19-Jun-10 7:14
Druuler19-Jun-10 7:14 
GeneralRe: Which is faster? Pin
Code-o-mat19-Jun-10 7:18
Code-o-mat19-Jun-10 7:18 
GeneralRe: Which is faster? Pin
Code-o-mat19-Jun-10 5:50
Code-o-mat19-Jun-10 5:50 
GeneralRe: Which is faster? Pin
CPallini19-Jun-10 8:43
mveCPallini19-Jun-10 8:43 
GeneralRe: Which is faster? Pin
Code-o-mat19-Jun-10 9:04
Code-o-mat19-Jun-10 9:04 
Just for you ( Smile | :) ), here are the results of a release build with "default" optimization (for speed):

<1a> 0.0000022349 sec
<1b> 0.0000019556 sec
<2 > 0.0000019556 sec
----------
<1a> 0.0000016762 sec
<1b> 0.0000016762 sec
<2 > 0.0000016762 sec
----------
<1a> 0.0000016762 sec
<1b> 0.0000016762 sec
<2 > 0.0000016762 sec
----------
<1a> 0.0000016762 sec
<1b> 0.0000016762 sec
<2 > 0.0000019556 sec
----------
<1a> 0.0000016762 sec
<1b> 0.0000016762 sec
<2 > 0.0000019556 sec

and with optimizations turned off:

<1a> 0.7622823571 sec
<1b> 0.7618152586 sec
<2 > 0.5077494486 sec
----------
<1a> 0.7632852779 sec
<1b> 0.7537491497 sec
<2 > 0.5121279380 sec
----------
<1a> 0.7620644523 sec
<1b> 0.7755153239 sec
<2 > 0.5118524840 sec
----------
<1a> 0.7574504581 sec
<1b> 0.7570453787 sec
<2 > 0.5195719009 sec
----------
<1a> 0.7594526679 sec
<1b> 0.7610942173 sec
<2 > 0.5190137294 sec

[EDIT] I wonder where the "variance" of the time needed for the 2nd method comes from with optimizations applied.
> The problem with computers is that they do what you tell them to do and not what you want them to do. <
> "It doesn't work, fix it" does not qualify as a bug report. <
> Amazing what new features none of the programmers working on the project ever heard of you can learn about when reading what the marketing guys wrote about it. <

GeneralRe: Which is faster? Pin
CPallini19-Jun-10 9:10
mveCPallini19-Jun-10 9:10 
QuestionI WANT TO WRITE NERO PROGRAM Pin
tuan111119-Jun-10 0:23
tuan111119-Jun-10 0:23 
AnswerRe: I WANT TO WRITE NERO PROGRAM Pin
Richard MacCutchan19-Jun-10 2:04
mveRichard MacCutchan19-Jun-10 2:04 
QuestionRe: I WANT TO WRITE NERO PROGRAM Pin
CPallini19-Jun-10 2:25
mveCPallini19-Jun-10 2:25 
JokeRe: I WANT TO WRITE NERO PROGRAM PinPopular
Code-o-mat19-Jun-10 6:04
Code-o-mat19-Jun-10 6:04 
AnswerRe: I WANT TO WRITE NERO PROGRAM Pin
David Crow20-Jun-10 16:58
David Crow20-Jun-10 16:58 
QuestionCreateThread with more than one parameter Pin
Fareed Rizkalla18-Jun-10 22:34
Fareed Rizkalla18-Jun-10 22:34 
AnswerRe: CreateThread with more than one parameter PinPopular
CPallini18-Jun-10 22:43
mveCPallini18-Jun-10 22:43 
GeneralRe: CreateThread with more than one parameter Pin
eusto18-Jun-10 23:37
eusto18-Jun-10 23:37 
GeneralRe: CreateThread with more than one parameter Pin
CPallini18-Jun-10 23:48
mveCPallini18-Jun-10 23:48 
GeneralRe: CreateThread with more than one parameter Pin
eusto19-Jun-10 1:15
eusto19-Jun-10 1:15 
GeneralRe: CreateThread with more than one parameter Pin
Code-o-mat19-Jun-10 0:39
Code-o-mat19-Jun-10 0:39 
QuestionRuntime Error Pin
T.RATHA KRISHNAN18-Jun-10 20:12
T.RATHA KRISHNAN18-Jun-10 20:12 
AnswerRe: Runtime Error Pin
Garth J Lancaster18-Jun-10 21:59
professionalGarth J Lancaster18-Jun-10 21:59 
AnswerRe: Runtime Error Pin
Aescleal19-Jun-10 1:09
Aescleal19-Jun-10 1:09 
Questionhow to creat a soft environment of android system? Pin
VSVC18-Jun-10 16:06
VSVC18-Jun-10 16:06 
Questionrounding doubles to set # decimal places Pin
b-rad31118-Jun-10 8:33
b-rad31118-Jun-10 8:33 

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.