Afficher un message
Vieux 16/10/2007, 06h25   #1
lali.b97@gmail.com
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut 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.

  Réponse avec citation
 
Page generated in 0,05848 seconds with 9 queries