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

C / C++ / MFC

 
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 
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 
As said here[^], probably the compiler modifies the code to its likes to produce the -possibly- fastest way to do it. Which kinda renders the whole question obsolete i guess, since no matter how i do it the result will be the same, or at least, which is faster will depend on the used compiler/optimization method.
So i'd say, turning off optimizations is only important from the "hypothetical question's" point of view.
> 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 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 
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 
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 

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.