At 2:24 PM -0400 3/24/07, Robert Cummings wrote:
On Sat, 2007-03-24 at 10:21 -0400, tedd wrote:
At 7:47 PM -0500 3/23/07, Richard Lynch wrote:
>Folks:
>
>How often do you use a loop of any kind in PHP with enough iterations
>that this is even significant?
>
>Write the code that makes sense.
>
>Optimize the biggest bottleneck until performance is acceptable.
Absolutely -- the time we take discussing these types of concerns
probably cost more cycles than the sum total of all the "optimized"
savings in the lifetime of all the computers on earth.
I highly doubt it. Computers run a lot these days. There are times when
squeezing that last nanosecond makes a difference and the devotion to
finding how to squeeze it out is well worth it. Admittedly they may be
few and far between, but they do exist.
And, I highly doubt that the difference is worth considering -- and
it's becoming less of a consideration each day.
Remember, we were talking about the differences between a "for" vs
"while" loop.
Cheers,
tedd
--
-------
http://sperling.com http://ancientstones.com http://earthstones.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php