On Fri, 2007-02-02 at 20:08 -0600, Richard Lynch wrote: > On Fri, February 2, 2007 7:41 pm, Robert Cummings wrote: > > function 10 times by embedding it in the loop's terminate condition? > > Because 10 calls to date() is chump-change.
10 chumps here, 10 there, 100 there, sloppy here, sloppy there, didn't realize this call isn't chump change, a million there. It adds up. > If you need to optimize away 10 calls to date() then something is > horribly wrong... No, but implicitly understanding wasted cycles will make it a habit you don't need to think about. 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