The better way to reference a component
In general, when something can be used by all visitors in 1 application, I store that into the application scope for quick memory-based performance.
My application has a component called "dao.cfc" (handles data access) and quite literally every user on every request is going to use that component at least once per load.
Is there any performance boost in storing a copy of the dao.cfc into the application scope vs. just pathing out to it as it is needed, ie:
IN APPLICATION SCOPE (the dao component is stored in the application.com structure)
#application.com.dao.functionName( args, args, etc. )#
vs.
AS NEEDED PER REQUEST
<cfinvoke component="app.com.dao" method="functionName" arg="value" etc="etc">
