Is it more efficient (Performance) to store the CFC in application variables OR instance the CFC on the page call?

Posted by Mitchell Guimont on Stack Overflow See other posts from Stack Overflow or by Mitchell Guimont
Published on 2011-02-05T22:05:23Z Indexed on 2011/02/05 23:25 UTC
Read the original article Hit count: 236

Hello,

I'm working on a ColdFusion dynamic website. For this website, there are a lot of CFCs and a lot of functions within each CFC. Would it be more efficient to store an instance of the CFC in an application variable, then to instance each CFC separately on each page load.

For each page, at most 2 separate CFCs get called. I'm also interested in how performance will be effected when requests increase (Stress).

Thanks!

© Stack Overflow or respective owner

Related posts about web-development

Related posts about Performance