> 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]
