A
aeismail
Hi, everybody:
A quick question regarding how to write if/then blocks.
Do C++ compilers care in terms of execution (i.e., efficiency) which
block in an if/then/else loop is executed? That is, will going to the
"else" block be less efficient than using the "then" block?
My question comes because I want to know if there is any advantage in
writing the test condition to favor one block over the other. (For the
code I'm working with, one case is definitely preferred over the
other--at least 2 to 1.)
Thanks,
--AEI
A quick question regarding how to write if/then blocks.
Do C++ compilers care in terms of execution (i.e., efficiency) which
block in an if/then/else loop is executed? That is, will going to the
"else" block be less efficient than using the "then" block?
My question comes because I want to know if there is any advantage in
writing the test condition to favor one block over the other. (For the
code I'm working with, one case is definitely preferred over the
other--at least 2 to 1.)
Thanks,
--AEI