3
It is true that ++$variavel
is faster than $variavel++
?
In that reply given in SOEN, we see the following excerpt:
... However pre-incrementing is Almost 10% Faster, which Means that you should switch from post- to pre-incrementing when you have the Opportunity ...
What do you mean:
... however pre-increment is almost 10% faster, which means that you must change from post to pre-increment when you has the opportunity ...
Are they demonstrably faster? Why?
If pré-incremento
really is faster, there’s some reason why I worry about using it instead of pós-incremento
in the codes I’ve used? I mean, this difference in performance makes a lot of difference in the application?
Interesting...10% is no small thing huh
– Daniel Omine
Is 10% in which cases? which code showed this result?
– rray
@rray, it’s those kinds of things like, "I’ve heard that this is better than that," and it’s in that question that I saw at SOEN
– Wallace Maxters