On Sat, 2007-03-24 at 14:38 -0400, tedd wrote: > 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. Ahh, but it was the pre-increment versus post-increment that made the difference. every bit counts, it's the same problem as energy savings. If you only do it in one place you don't really see a savings, if you do it everywhere, it begins to have an impact. Cheers, Rob. -- .------------------------------------------------------------. | InterJinn Application Framework - http://www.interjinn.com | :------------------------------------------------------------: | An application and templating framework for PHP. Boasting | | a powerful, scalable system for accessing system services | | such as forms, properties, sessions, and caches. InterJinn | | also provides an extremely flexible architecture for | | creating re-usable components quickly and easily. | `------------------------------------------------------------' -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php