CFC caching
Hi,
So in our application, we cache CFC objects in application scope so that when we use the objects we avoid having to instantiate them again which presumably take extra time. However, I have been wondering whether it's true that further instantiations do take extra time. Let me clarify: suppose I have a set of CFCs that I just wrote and I create a script to instantiate them for the first time. That process will take some noticeable time. However, the subsequent times I run the same script there is almost no processing time. It looks to me that ColdFusion is caching these objects already. And as long as I do not change any of the CFCs, new instantiations happen without any noticeable time.
Is that true that CF caches these instantiated CFC objects automatically? In which case there is no difference in processing time between using application-scope CFC object and instantiating whenever we need to use the object. Btw, I realize that there may still be differences in terms of amount of memory used.
This question has been bothering me a bit, so I'd appreciate if someone could clarify it for me. Thank you!
Sincerely,
Min
