Is it true that ++$variavel
is faster than $variavel++
?
In this answer 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:
Are they proven to be faster? Why?... however pre-increment is almost 10% faster, which means that you should switch from powders to pre-increment when you you have the opportunity ...
If pré-incremento
is actually faster, is there any reason why I should bother using it, instead of pós-incremento
in the codes I've already used? I mean, does this difference in performance make a lot of difference in the application?