Hi Todd,

>If you use <cfset> in the Application.cfm file, the <cfset> gets executed
>every time a page is loaded, regardless if the variable already has its
>value or not.  If you use <cfparam name="application.datasource"
>default="mydsn">, the variable is only set if it doesn't already exist.  I
>would guess this provides a slight performance increase which could really
>add up under heavy use.

I wonder about that. <cfparam has to check for the existance of a variable,
then sets it if it is not there, <cfset just plain sets it.

If we are talking template level variables then the <cfset is obviously
faster but at the application or server level scopes then which is faster a
check or a set? First time round the variable has to be set, but after that?



--

Yours,

Kym
------------------------------------------------------------------------------
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.

Reply via email to