Does 'if' have performance overhead
Somewhere in a tutorial i read that if statement has performance
overheads as code within the if statement cannot take benefit of
pipeling of microprocessor and also that the compiler cannot
agressively optimize that code.
>From that day onwards i have been trying to avoid if statement withing
my functions as much as possible and also try to have minimum code
withing if block.
However, i am bit skeptic about this.
I need some guidance. Performance is always the key issue for me when
it comes to writing programs.
Please guide.
|