OK. I am not concerned so much about "number of lines" as I am about complexity. A lot of lines are added to my code due to switch blocks and comments. However, there are some functions that are quite complex. The specific CFC I am working with is a employee's timecards CFC (not an employee CFC). There are functions for retrieving the current timecard, going to the next, going to the previous, getting information out of the database, adding, updating, deleting, undoing, validation routines, rounding functions, many sub-functions for date calculations, plus many more. I suppose one way for me to break it down into a timecards CFC which contains an array of individual timecard CFCs. I guess my question is at what point do I start considering this? I am also concerned about the RAM usage. What is the impact on RAM usage of having a function inside of every instance of a CFC versus having a function inside of a single custom tag? For example, if I break down the CFC into a CFC representing the timecards array and a CFC representing each timecard, am I actually doing a disservice since the number of CFC instances, and the number methods repeated in RAM, will now be much greater?

The sense I am getting from the responses people have given is that CFCs are not scalable the same way a typical function library would be scalable. Is this the general feeling?

In CF5, if I saw a file that had more than 2000 lines of code, my first impression would be that the code is poorly designed and that it could probably be broken down using custom tags and cfincludes. However, with CFCs, all of these custom tags and cfincludes are essentially bundled together in a single file, so I have to reset my sense of what is good and what is bad.

Does anyone know of a good way to determine how much RAM each CFC is using? How about even some rule of thumb method, such as 1 byte of variable length = 1 byte of RAM? How will I know when the "Maximum JVM Heap Size" is reached?

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]

Reply via email to