Unless there are really specific reasons for needing it (perhaps long
SQL statements), if you have a CFC with thousands of lines of code in
it, that's a strong indicator that it should be broken down.  It's
probably doing too many things.

On the size of CFCs in memory, I'm not sure there is any way to tell
beyond guesstimates and monitoring the server's memory under load.
Let's see if Sean has any input on this topic.

Regards,

Brian

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of Mike Chabot
Sent: Tuesday, July 13, 2004 8:46 AM
To: [EMAIL PROTECTED]
Subject: [CFCDev] CFC size

I am wondering how the number of lines of code inside of a CFC affects
the
time it takes to instantiate an object?

Let's say every user who logs into a site gets an employee.session = an
instance of employee.cfc. This CFC contains a couple thousand lines of
code
because of all the functions. Does anyone know if there is a point at
which
it makes sense to break up the CFC into a CFC that mainly just contains
properties, and either a singleton CFC that contain the methods or
custom
tags? Can you load an endless series of functions into a CFC without the
user noticing any slowness? How much RAM do the methods inside of each
session CFC instance take up? They must take up some room since I see
the
public function descriptions when I do a dump of session.employee.

Thank you,
Mike Chabot

----------------------------------------------------------
You are subscribed to cfcdev. To unsubscribe, send an email
to [EMAIL PROTECTED] with the words 'unsubscribe cfcdev' 
in the message of the email.

CFCDev is run by CFCZone (www.cfczone.org) and supported
by Mindtool, Corporation (www.mindtool.com).

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

----------------------------------------------------------
You are subscribed to cfcdev. To unsubscribe, send an email
to [EMAIL PROTECTED] with the words 'unsubscribe cfcdev' 
in the message of the email.

CFCDev is run by CFCZone (www.cfczone.org) and supported
by Mindtool, Corporation (www.mindtool.com).

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

Reply via email to