Splitting up CFC
Hi,
We have an ecommerce application that uses a number of CF components. Some of these are quite long with many functions. Right now, each user to our site gets assigned a CFC object that is stored in his/her session. So at the beginning of the session, there is a lot of CFC instantiations going on. I am wondering whether this is the most efficient way in terms of speed and memory utilization.
Would it be better if I split up each CFC into two: one stored in the Application scope that contains all the functions, and another stored in individual's session scope that contains mostly the data. So the session-scope CFC objects would access the application-scope CFC object for the functions. Do you think this would improve the performance of the website? What goes on behind the scene when a CFC object is being instantiated?
Thanks,
ML
