>With approx. 900 lines of code in the CFC, the first instantiation takes >around 1 second, and each subsequent instantiation takes 0.06 seconds. >With approx. 4300 lines of code (by making copies of a big function),
Thanks for testing Stats! Ok, i missed this thread. I think i read a post here, CFC's have a Size Limit (130 KB?). Is this True? searched google didnt really find anything. ALL CFC Method's are compiled to their own Class. There shouldnt be any problems instanciating/executing the compiled code UNLESS there is a problem with the CFMX Parser parsing through large CFC's and generating the Java Code to be Compiled. 1. CFC Source Code 2. CFMX Parser <---- is there a bug or problem here? 3. Java Code Compiler Most of our CFC's are around 1500 - 2000 lines long. Very Highly Organized to Modules that represent the Business Objectives. Orders.cfc / Orders Module manages everything related to Orders Only BUT Orders have nothing to do with "Shopping" Or "Shipping" Or "Commission" Modules. Thanks, Joe Eugene >-----Original Message----- >From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] >Behalf Of Mike Chabot >Sent: Tuesday, July 13, 2004 4:17 PM >To: [EMAIL PROTECTED] >Subject: Re: [CFCDev] CFC size > > > >> > So lets say 10,000 >> > sessions are open at once, which is very reasonable for this >application. >> > That means that 10,000 copies of every function that is in the CFC now >> > reside in RAM, even though every function is identical. >> >>No, only *one* copy of each function is present in memory. > >Sean, >Thanks for the reply. I will assume your answer is correct until proven >otherwise. > >Based on your response I would suppose that, as long as you are not the >first person to log in after the CFC changes, it should not matter >how many >functions I cram into a CFC from a scalability perspective. If I am the >second person to log in, the functions in my CFC are merely pointers to >functions that are already present in the session scope, so should >not take >any appreciable amount of time to load or parse. > >Some very brief testing: >With approx. 900 lines of code in the CFC, the first instantiation takes >around 1 second, and each subsequent instantiation takes 0.06 seconds. >With approx. 4300 lines of code (by making copies of a big function), the >first instantiation takes around 5 seconds, and each subsequent >instantiation takes 0.07 seconds. > >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]
