Re: Year
| From: | Robert Cummings | Date: | Sat, 03 Feb 2007 03:16:56 +0000 |
| Subject: | Re: Year | ||
| References: | 1 2 3 4 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-248231@lists.php.net to get a copy of this message | ||
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. |
`------------------------------------------------------------'