On 11/14/05, Mike Kear <[EMAIL PROTECTED]> wrote:
> However here are some of the results of taking this approach:
> PRIOR:
> Home page created in 141ms (figs from the CFMX debugging display)
> Pagex created in 125ms
> Pagey created in 156ms
> Admin Home page 984ms.
>
> AFTER:
>
> Home page created in 63ms
> Pagex created in 31ms
> Pagey created in 34ms
> Admin page created in 94ms.
>
> While I know these figures dont tell much in themselves because there is the
> time cost in having debugging displayed too,  there is certainly a dramatic
> reduction in the overhead through not instantiating CFCs that were not
> required for this request.
>
> So I think this proves the factory pattern pays for itself. Yes?

Excellent feedback Mike! Glad to see that not only are you feeling
more comfortable with OO and some patterns but you're seeing real,
tangible benefits! A lot of the time, people assume that moving to
more elegant, more structured, more OO code introduces a performance
overhead. As you proved, sometimes the "obvious" approach is slower
than using patterns etc.
--
Sean A Corfield -- http://corfield.org/
Got frameworks?

"If you're not annoying somebody, you're not really alive."
-- Margaret Atwood


----------------------------------------------------------
You are subscribed to cfcdev. To unsubscribe, send an email to 
[email protected] with the words 'unsubscribe cfcdev' as the subject of the 
email.

CFCDev is run by CFCZone (www.cfczone.org) and supported by CFXHosting 
(www.cfxhosting.com).

An archive of the CFCDev list is available at 
www.mail-archive.com/[email protected]


Reply via email to