[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-core-devel
Subject:    Re: Krazy: prefix vs. postfix ++ and -- operators
From:       Artur de Souza <asouza () kde ! org>
Date:       2011-01-11 17:36:49
Message-ID: 20110111143649.13067h6rnmfmtow8 () morpheuz ! cc
[Download RAW message or body]


Quoting Rafa? Mi?ecki <zajec5@gmail.com>:
> Doesn't compiler optimize than anyway, when possible (like inside
> for)? I was told that when I tried using post incr. in kernel.

You're right. Most of the compilers take care of that today, so you  
don't have to worry about this anymore.
Of course you can defend one or another based on code readability and  
coding style, but performance-wise it shouldn't be a problem with  
modern compilers.

Cheers,


-------------------------------------------


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic