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

C / C++ / MFC

 
GeneralRe: Suggestion Pin
Marcel Vogt19-Jun-10 8:59
Marcel Vogt19-Jun-10 8:59 
GeneralRe: Suggestion Pin
Baltoro19-Jun-10 9:16
Baltoro19-Jun-10 9:16 
AnswerRe: WMI getting IP-Address Pin
Luc Pattyn19-Jun-10 9:26
sitebuilderLuc Pattyn19-Jun-10 9:26 
AnswerRe: WMI getting IP-Address Pin
Hristo-Bojilov20-Jun-10 3:44
Hristo-Bojilov20-Jun-10 3:44 
QuestionWhich is faster? Pin
Code-o-mat19-Jun-10 0:48
Code-o-mat19-Jun-10 0:48 
AnswerRe: Which is faster? Pin
Aescleal19-Jun-10 0:55
Aescleal19-Jun-10 0:55 
GeneralRe: Which is faster? Pin
Code-o-mat19-Jun-10 1:00
Code-o-mat19-Jun-10 1:00 
GeneralRe: Which is faster? [modified] Pin
Code-o-mat19-Jun-10 5:16
Code-o-mat19-Jun-10 5:16 
Hey, in case you care, i wrote a little tester that uses the high performance counter to check how much it takes to do the given equations 100million times, here are the resuls, 1a being the first method, 1b being the first method with the different order and 2 being the second method:

<1a> 0.698949 sec
<1b> 0.750401 sec
<2 > 0.527537 sec
----------
<1a> 0.711031 sec
<1b> 0.701738 sec
<2 > 0.508943 sec
----------
<1a> 0.699821 sec
<1b> 0.710665 sec
<2 > 0.514772 sec
----------
<1a> 0.695679 sec
<1b> 0.693272 sec
<2 > 0.510279 sec
----------
<1a> 0.697279 sec
<1b> 0.696093 sec
<2 > 0.569204 sec

Seems like method 2 indeed wins, changing the order doesn't seem to make much of a difference (diff. between 1a and 1b).

[Edit] Tests were done with a no-optimization debug build.
> 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. <

modified on Saturday, June 19, 2010 11:59 AM

GeneralRe: Which is faster? Pin
Aescleal19-Jun-10 6:10
Aescleal19-Jun-10 6:10 
GeneralRe: Which is faster? Pin
Code-o-mat19-Jun-10 6:12
Code-o-mat19-Jun-10 6:12 
GeneralRe: Which is faster? Pin
Aescleal19-Jun-10 6:36
Aescleal19-Jun-10 6:36 
GeneralRe: Which is faster? Pin
Code-o-mat19-Jun-10 6:53
Code-o-mat19-Jun-10 6:53 
GeneralRe: Which is faster? Pin
CPallini19-Jun-10 8:34
mveCPallini19-Jun-10 8:34 
GeneralRe: Which is faster? Pin
Member 419459319-Jun-10 15:54
Member 419459319-Jun-10 15:54 
GeneralRe: Which is faster? Pin
Aescleal19-Jun-10 23:15
Aescleal19-Jun-10 23:15 
AnswerRe: Which is faster? Pin
Luc Pattyn19-Jun-10 1:04
sitebuilderLuc Pattyn19-Jun-10 1:04 
GeneralRe: Which is faster? Pin
Code-o-mat19-Jun-10 5:49
Code-o-mat19-Jun-10 5:49 
GeneralRe: Which is faster? Pin
Luc Pattyn19-Jun-10 5:55
sitebuilderLuc Pattyn19-Jun-10 5:55 
AnswerRe: Which is faster? Pin
CPallini19-Jun-10 1:08
mveCPallini19-Jun-10 1:08 
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 

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.