phpgroupware-developers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Phpgroupware-developers] i++ versus ++i


From: Jeff Bachtel
Subject: Re: [Phpgroupware-developers] i++ versus ++i
Date: Fri, 6 Feb 2004 17:43:49 -0600
User-agent: Mutt/1.4.1i

The benchmark results indicate that doing the change is a waste of
developer effort. Add to that the possible error in an assignment
case, and the time to track down and fix the error, and I can't see
why you would possibly switch from the syntax you are more comfortable
using.

> Very intresting ... I will make a note of using preincrements from now
> on.  I don't think we should change all the code for it, but if you
> see something
> in a section of code you are working on, might as well go ahead and
> change it.
> 
> Chris Weiss wrote:
> 
> | So I did a benchmark, 100 iteration of 100,000 increments and
> averaged them.
> | The pre-increment is .004 seconds faster on average on P4 2.24Ghz
> using php
> | 4.3.1 CLI that comes with Mandrake 9.1.
> |
> | So there's about a 40 nanosecond difference between the two with
> | ++$i
> being
> | faster.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]